LDAP: check for resource before unbinding

remotes/origin/stable5
Arthur Schiwon 13 years ago
parent 46871e9b2e
commit 3f78a8190f
  1. 4
      apps/user_ldap/lib/connection.php

@ -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…
Cancel
Save