Skip to content

Commit

Permalink
fix(notification): Prevent null in parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and backportbot-nextcloud[bot] committed Jul 14, 2023
1 parent 9030715 commit 207037c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ public function prepare(INotification $notification, string $languageCode): INot
],
'user' => [
'type' => 'user',
'id' => $params[1],
'name' => $dn,
'id' => $params[1] ?? '',
'name' => $dn ?? '',
]
]
);
Expand Down

0 comments on commit 207037c

Please sign in to comment.