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 e5f5685 commit a36b8fd
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 a36b8fd

Please sign in to comment.