Update ldap.class.php

This commit is contained in:
Laurent Destailleur 2022-01-06 16:02:47 +01:00 committed by GitHub
parent 6a52b967f4
commit aee61cb470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;