mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #19726 from vdegrandpre/FIX-19725-LDAP-AUTH-500
FIX - 19725 - Authentification LDAP échoue avec erreur 500
This commit is contained in:
commit
aba6aed7d7
|
|
@ -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