mirror of
https://github.com/nextcloud/server.git
synced 2026-03-12 13:44:53 -04:00
Merge pull request #35228 from nextcloud/fix/user_ldap-cache-empty-display-names
user_ldap - Cache display name even if it was not filled
This commit is contained in:
commit
e04fcea6b6
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue