Unverified Commit 5bd77827 authored by Adrien Clairembault's avatar Adrien Clairembault Committed by GitHub

Fix IMAP auth without login source dropdown (#8498)

* Fix IMAP auth without login source dropdown

* Check getFromDBByCrit result
parent 54e04bc8
......@@ -855,8 +855,9 @@ class Auth extends CommonGLPI {
if (!empty($login_auth)) {
$search_params['auths_id'] = $this->user->fields["auths_id"];
}
$this->user->getFromDBByCrit($search_params);
$user_deleted_ldap = true;
if ($this->user->getFromDBByCrit($search_params)) {
$user_deleted_ldap = true;
};
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment