Skip to content

Commit

Permalink
PHP Notice: Trying to access array offset on value of type bool
Browse files Browse the repository at this point in the history
  • Loading branch information
escopecz authored and dennisameling committed Oct 20, 2020
1 parent 8ab8a2b commit cf3b38e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</div>
</div>
<?php $lastNotification = reset($notifications); ?>
<input id="mauticLastNotificationId" type="hidden" value="<?php echo $view->escape($lastNotification['id']); ?>" />
<input id="mauticLastNotificationId" type="hidden" value="<?php echo isset($lastNotification['id']) ? $view->escape($lastNotification['id']) : ''; ?>" />
</div>
</div>
</li>

0 comments on commit cf3b38e

Please sign in to comment.