From: Tim Düsterhus Date: Mon, 11 Jan 2021 15:59:19 +0000 (+0100) Subject: Fix check for deleted notifications in NotificationEmailDeliveryBackgroundJob X-Git-Tag: 5.3.3~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f478f96ebfac8f67c7d6effeb7efcf59a5c2a02;p=GitHub%2FWoltLab%2FWCF.git Fix check for deleted notifications in NotificationEmailDeliveryBackgroundJob --- diff --git a/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php index a908942dde..96d2a714d1 100644 --- a/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php @@ -85,7 +85,7 @@ class NotificationEmailDeliveryBackgroundJob extends AbstractBackgroundJob { $statement->closeCursor(); // Drop email if the notification is deleted. - if (!$notification->notificationID) { + if (!$notification || !$notification->notificationID) { return; }