From 19a4832caf7cd01aca1948836db05c2157cf6f2f Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 14 Jul 2023 07:53:51 +0200 Subject: [PATCH] fix(notification): Prevent null in parameters Signed-off-by: Joas Schilling --- lib/Notification/Notifier.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 0a9425828..e86b9bfb1 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -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 ?? '', ] ] );