Skip to content

Commit

Permalink
Merge pull request nextcloud#217 from Glandos/patch-1
Browse files Browse the repository at this point in the history
Trim doesn't accept null anymore
  • Loading branch information
come-nc authored Jan 24, 2023
2 parents ff04491 + 5e5c330 commit 9090251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getDisplayName($uid) {
$user = $result->fetch();
$result->closeCursor();

$displayName = trim($user['displayname'], ' ');
$displayName = trim($user['displayname'] ?? '', ' ');
if (!empty($displayName)) {
return $displayName;
} else {
Expand Down

0 comments on commit 9090251

Please sign in to comment.