Fix PR for ldap is_ressource or is_object in unbind()

This commit is contained in:
yann.droniou 2023-03-02 16:20:32 +01:00
parent 9b6e0bab00
commit 1b64068fc8

View File

@ -396,7 +396,7 @@ class Ldap
public function unbind()
{
$this->result = true;
if (is_resource($this->connection)) {
if (is_resource($this->connection) || is_object($this->connection)) {
$this->result = @ldap_unbind($this->connection);
}
if ($this->result) {