Skip to content

Commit

Permalink
Merge pull request #2604 from LibreSign/backport/2603/stable28
Browse files Browse the repository at this point in the history
[stable28] Prevent warning when try to access not found id
  • Loading branch information
vitormattos authored Mar 26, 2024
2 parents 0fdaecd + 41cd0b1 commit 226c138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 226c138

Please sign in to comment.