LDAP: check for resource before unbinding
This commit is contained in:
parent
46871e9b2e
commit
3f78a8190f
|
@ -64,7 +64,9 @@ class Connection {
|
|||
}
|
||||
|
||||
public function __destruct() {
|
||||
@ldap_unbind($this->ldapConnectionRes);
|
||||
if(is_resource($this->ldapConnectionRes)) {
|
||||
@ldap_unbind($this->ldapConnectionRes);
|
||||
};
|
||||
}
|
||||
|
||||
public function __get($name) {
|
||||
|
|
Loading…
Reference in New Issue