diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php index f4ccfe3430455..c11f5c7a82fb5 100644 --- a/apps/user_ldap/lib/Group_LDAP.php +++ b/apps/user_ldap/lib/Group_LDAP.php @@ -24,6 +24,7 @@ * @author Victor Dubiniuk * @author Vinicius Cubas Brand * @author Xuanwo + * @author Carl Schwan * * @license AGPL-3.0 * @@ -376,7 +377,7 @@ private function processListFromWalkingNestedGroups(array &$list, array &$seen, $fetched = $this->access->connection->getFromCache($cacheKey); if ($fetched === null) { $fetched = $fetcher($recordDN); - $fetched = $this->access->connection->writeToCache($cacheKey, $fetched); + $this->access->connection->writeToCache($cacheKey, $fetched); } $list = array_merge($list, $fetched); if (!isset($seen[$recordDN]) || is_bool($seen[$recordDN]) && is_array($record)) {