Permettre de sortir de la fonction de connexion après authentification.
This commit is contained in:
parent
a919ade1c6
commit
6a52b967f4
@ -301,7 +301,8 @@ class Ldap
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
if ($this->connection && !@ldap_close($this->connection)) {
|
||||
$r_type = get_resource_type($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