Skip to content

Commit

Permalink
Check if cache is present with isset
Browse files Browse the repository at this point in the history
Otherwise we get false for empty array

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
  • Loading branch information
CarlSchwan committed Oct 20, 2022
1 parent b5379b0 commit a08296d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/user_ldap/lib/Group_LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ private function getGroupsByMember(string $dn, array &$seen = []): array {
}
$seen[$dn] = true;

if ($this->cachedGroupsByMember[$dn]) {
if (isset($this->cachedGroupsByMember[$dn])) {
return $this->cachedGroupsByMember[$dn];
}

Expand Down

0 comments on commit a08296d

Please sign in to comment.