Check if cache is present with isset

Otherwise we get false for empty array

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2022-10-20 11:30:46 +02:00
parent 1a6a6c985a
commit 60ec5e655c

View file

@ -797,7 +797,7 @@ class Group_LDAP extends BackendUtility implements GroupInterface, IGroupLDAP, I
}
$seen[$dn] = true;
if ($this->cachedGroupsByMember[$dn]) {
if (isset($this->cachedGroupsByMember[$dn])) {
return $this->cachedGroupsByMember[$dn];
}