aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Group_LDAP.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-11-17 14:47:00 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-11-17 14:47:00 +0100
commit1d0029062112d805c47fde70f5ef26bbe9df5c9b (patch)
tree525eb2f049f44a31564f309df1b45f19ac55a912 /apps/user_ldap/lib/Group_LDAP.php
parent301af07e2f4cb506512899b7b4783db8b7975ee9 (diff)
downloadnextcloud-server-1d0029062112d805c47fde70f5ef26bbe9df5c9b.tar.gz
nextcloud-server-1d0029062112d805c47fde70f5ef26bbe9df5c9b.zip
Cache display name even if it was not filled
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/Group_LDAP.php')
-rw-r--r--apps/user_ldap/lib/Group_LDAP.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php
index 81cb30dd25b..b32e031175f 100644
--- a/apps/user_ldap/lib/Group_LDAP.php
+++ b/apps/user_ldap/lib/Group_LDAP.php
@@ -1324,10 +1324,11 @@ class Group_LDAP extends BackendUtility implements GroupInterface, IGroupLDAP, I
if (($displayName !== false) && (count($displayName) > 0)) {
$displayName = $displayName[0];
- $this->access->connection->writeToCache($cacheKey, $displayName);
- return $displayName;
+ } else {
+ $displayName = '';
}
- return '';
+ $this->access->connection->writeToCache($cacheKey, $displayName);
+ return $displayName;
}
}