From 00e17f269519d19e4d7ad6fb854fac54c3067807 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 26 Mar 2024 15:57:55 -0300 Subject: [PATCH] Prevent warning when try to access not found id Signed-off-by: Vitor Mattos --- lib/Notification/Notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 28abb0dfd9..a8868dc2c8 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -124,7 +124,7 @@ private function parseSignRequest( $notification->setParsedMessage($l->t('Changes have been made in a file that you have to sign.')); } - if (isset($parameters['signRequest'])) { + if (isset($parameters['signRequest']) && isset($parameters['signRequest']['id'])) { $dismissAction = $notification->createAction() ->setParsedLabel($l->t('Dismiss notification')) ->setLink(