diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-11-24 18:18:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 18:18:22 +0100 |
commit | e04fcea6b698f5d0d95039f3e92beeeeb9cdf00c (patch) | |
tree | a791b5f6a21216591951a9820b17cd31516ca727 /apps/user_ldap | |
parent | 56daa07b632e8d194fcdb01c2915035fe9ad5e89 (diff) | |
parent | 1d0029062112d805c47fde70f5ef26bbe9df5c9b (diff) | |
download | nextcloud-server-e04fcea6b698f5d0d95039f3e92beeeeb9cdf00c.tar.gz nextcloud-server-e04fcea6b698f5d0d95039f3e92beeeeb9cdf00c.zip |
Merge pull request #35228 from nextcloud/fix/user_ldap-cache-empty-display-names
user_ldap - Cache display name even if it was not filled
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/Group_LDAP.php | 7 |
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; } } |