Skip to content

Commit

Permalink
Merge pull request #2603 from LibreSign/bugfix/prevent-warning-when-t…
Browse files Browse the repository at this point in the history
…ry-to-access-not-found-id

Prevent warning when try to access not found id
  • Loading branch information
vitormattos authored Mar 26, 2024
2 parents a6a219d + 00e17f2 commit 2ac49cb
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 2ac49cb

Please sign in to comment.