mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
[stable9.1] Fix undefined OfflineUser::composeAndStoreDisplayName() - fixes #23248
This commit is contained in:
parent
318d68a9a9
commit
1177c70b9d
1 changed files with 8 additions and 2 deletions
|
|
@ -384,8 +384,14 @@ class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn
|
|||
}
|
||||
|
||||
$user = $this->access->userManager->get($uid);
|
||||
$displayName = $user->composeAndStoreDisplayName($displayName, $displayName2);
|
||||
$this->access->connection->writeToCache($cacheKey, $displayName);
|
||||
if ($user instanceof User) {
|
||||
$displayName = $user->composeAndStoreDisplayName($displayName, $displayName2);
|
||||
$this->access->connection->writeToCache($cacheKey, $displayName);
|
||||
}
|
||||
if ($user instanceof OfflineUser) {
|
||||
/** @var OfflineUser $user*/
|
||||
$displayName = $user->getDisplayName();
|
||||
}
|
||||
return $displayName;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue