This commit is contained in:
parent
900267333e
commit
c35b4f12ff
|
@ -385,8 +385,14 @@ class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = $this->access->userManager->get($uid);
|
$user = $this->access->userManager->get($uid);
|
||||||
$displayName = $user->composeAndStoreDisplayName($displayName, $displayName2);
|
if ($user instanceof User) {
|
||||||
$this->access->connection->writeToCache($cacheKey, $displayName);
|
$displayName = $user->composeAndStoreDisplayName($displayName, $displayName2);
|
||||||
|
$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