Skip to content
Snippets Groups Projects
Commit 3f78a819 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: check for resource before unbinding

parent 46871e9b
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment