Skip to content

Commit

Permalink
Change variable declaration; fixes #3544
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Feb 27, 2018
1 parent 8f97b8f commit 9c464f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions inc/authldap.class.php
Expand Up @@ -1767,9 +1767,8 @@ static function getAllUsers(array $options, &$results, &$limitexceeded) {
} else {
//Ldap synchronisation : look if the user exists in the directory
//and compares the modifications dates (ldap and glpi db)
$userfound = false;
if (!empty($ldap_users[$user[$field_for_db]])
|| ($userfound = self::dnExistsInLdap($user_infos, $user['user_dn']))) {
$userfound = self::dnExistsInLdap($user_infos, $user['user_dn']);
if (!empty($ldap_users[$user[$field_for_db]]) || $userfound) {
// userfound seems that user dn is present in GLPI DB but do not correspond to an GLPI user
// -> renaming case
if ($userfound) {
Expand Down

0 comments on commit 9c464f4

Please sign in to comment.