summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-20 11:30:46 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-10-20 13:14:39 +0200
commit60ec5e655c3450c8083f37aeccfbc2876b2a7d1a (patch)
tree8540859f7746fe5f9557cf708ac65a837280594b /apps/user_ldap
parent1a6a6c985a014a0759135c9cc694cbf2d430b650 (diff)
downloadnextcloud-server-60ec5e655c3450c8083f37aeccfbc2876b2a7d1a.tar.gz
nextcloud-server-60ec5e655c3450c8083f37aeccfbc2876b2a7d1a.zip
Check if cache is present with isset
Otherwise we get false for empty array Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/Group_LDAP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php
index d5a1cab30fe..723b3d856ad 100644
--- a/apps/user_ldap/lib/Group_LDAP.php
+++ b/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];
}