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:
Côme Chilliet 2022-11-24 18:18:22 +01:00 committed by GitHub
commit e04fcea6b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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