diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php index 97381f0f1b55c..57edaff97d471 100644 --- a/apps/user_ldap/lib/Group_LDAP.php +++ b/apps/user_ldap/lib/Group_LDAP.php @@ -941,8 +941,8 @@ public function usersInGroup($gid, $search = '', $limit = -1, $offset = 0) { break; } - $cacheKey = 'userExistsOnLDAP' . $uid; - $userExists = $this->access->connection->getFromCache($cacheKey); + $userExistsCacheKey = 'userExistsOnLDAP' . $uid; + $userExists = $this->access->connection->getFromCache($userExistsCacheKey); if ($userExists === false) { break; } @@ -954,11 +954,11 @@ public function usersInGroup($gid, $search = '', $limit = -1, $offset = 0) { $this->access->connection->ldapUserFilter ]))) { if ($search === '') { - $this->access->connection->writeToCache($cacheKey, false); + $this->access->connection->writeToCache($userExistsCacheKey, false); } break; } - $this->access->connection->writeToCache($cacheKey, true); + $this->access->connection->writeToCache($userExistsCacheKey, true); } $groupUsers[] = $uid; break;