Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux authored Jan 27, 2025
1 parent 3fd2bfb commit 57f1064
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/Command/User/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ protected function getUserSettings(string $uid, string $app, bool $ignoreMissing
}

$user = $this->userManager->get($uid);
if ($user !== null || $ignoreMissingUser === false) {
// Only add the display name if the user exists (or is expected to exist)
$settings['settings']['display_name'] = $user?->getDisplayName();
if ($user !== null) {
// Only add the display name if the user exists
$settings['settings']['display_name'] = $user->getDisplayName();
}

return $settings;
Expand Down

0 comments on commit 57f1064

Please sign in to comment.