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 <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jul 14, 2023
1 parent 85e09ac commit 4b1e670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Notification/Notifier.php
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 4b1e670

Please sign in to comment.