From bdd32ed1c11eb3ef6e3f0fea16375c8cd4768aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 2 Nov 2026 14:35:15 +0100 Subject: [PATCH] fix(user_ldap): Fix variable name conflict for cache key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/user_ldap/lib/Group_LDAP.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php index 93320b3166920..137167b1c1adc 100644 --- a/apps/user_ldap/lib/Group_LDAP.php +++ b/apps/user_ldap/lib/Group_LDAP.php @@ -944,8 +944,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; } @@ -957,11 +957,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;