mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
fix(dav): Remove useless null check on displayName
There is already a fallback to uid inside User.php Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
d881bca11f
commit
2315159b15
1 changed files with 1 additions and 2 deletions
|
|
@ -496,10 +496,9 @@ class Principal implements BackendInterface {
|
|||
};
|
||||
|
||||
$userId = $user->getUID();
|
||||
$displayName = $user->getDisplayName();
|
||||
$principal = [
|
||||
'uri' => $this->principalPrefix . '/' . $userId,
|
||||
'{DAV:}displayname' => is_null($displayName) ? $userId : $displayName,
|
||||
'{DAV:}displayname' => $user->getDisplayName(),
|
||||
'{urn:ietf:params:xml:ns:caldav}calendar-user-type' => 'INDIVIDUAL',
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue