From 3f478f96ebfac8f67c7d6effeb7efcf59a5c2a02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 11 Jan 2021 16:59:19 +0100 Subject: [PATCH] Fix check for deleted notifications in NotificationEmailDeliveryBackgroundJob --- .../job/NotificationEmailDeliveryBackgroundJob.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1