Fix PR for ldap is_ressource or is_object in unbind()
This commit is contained in:
parent
9b6e0bab00
commit
1b64068fc8
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user