Browse Source

Check if cache is present with isset

Otherwise we get false for empty array

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
pull/30223/head
Carl Schwan 3 years ago
parent
commit
60ec5e655c
  1. 2
      apps/user_ldap/lib/Group_LDAP.php

2
apps/user_ldap/lib/Group_LDAP.php

@ -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];
}

Loading…
Cancel
Save