Update ldap.class.php
This commit is contained in:
parent
6a52b967f4
commit
aee61cb470
@ -302,7 +302,7 @@ class Ldap
|
||||
public function close()
|
||||
{
|
||||
$r_type = get_resource_type($this->connection);
|
||||
if ($this->connection && ($r_type == "Unknown" || !@ldap_close($this->connection))) {
|
||||
if ($this->connection && ($r_type === "Unknown" || !@ldap_close($this->connection))) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user