From e396c17828fa934d409f343b59f7d7bc50223bd4 Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Fri, 14 Jul 2023 07:53:51 +0200
Subject: [PATCH] fix(notification): Prevent null in parameters

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 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 ?? '',
 						]
 					]
 				);