Merge pull request #590 from nextcloud/fixing-undefined-OfflineUser-composeAndStoreDisplayName
Fix undefined OfflineUser::composeAndStoreDisplayName()
This commit is contained in:
commit
83c64f3485
|
@ -395,8 +395,14 @@ class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = $this->access->userManager->get($uid);
|
$user = $this->access->userManager->get($uid);
|
||||||
|
if ($user instanceof User) {
|
||||||
$displayName = $user->composeAndStoreDisplayName($displayName, $displayName2);
|
$displayName = $user->composeAndStoreDisplayName($displayName, $displayName2);
|
||||||
$this->access->connection->writeToCache($cacheKey, $displayName);
|
$this->access->connection->writeToCache($cacheKey, $displayName);
|
||||||
|
}
|
||||||
|
if ($user instanceof OfflineUser) {
|
||||||
|
/** @var OfflineUser $user*/
|
||||||
|
$displayName = $user->getDisplayName();
|
||||||
|
}
|
||||||
return $displayName;
|
return $displayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue