Skip to content

Commit 60ec5e6

Browse files
committed
Check if cache is present with isset
Otherwise we get false for empty array Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 1a6a6c9 commit 60ec5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/user_ldap/lib/Group_LDAP.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ private function getGroupsByMember(string $dn, array &$seen = []): array {
797797
}
798798
$seen[$dn] = true;
799799

800-
if ($this->cachedGroupsByMember[$dn]) {
800+
if (isset($this->cachedGroupsByMember[$dn])) {
801801
return $this->cachedGroupsByMember[$dn];
802802
}
803803

0 commit comments

Comments
 (0)