Update wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler...
authorOlaf Braun <olaf_schmitz_1@t-online.de>
Tue, 20 Feb 2024 11:05:02 +0000 (12:05 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 23 Feb 2024 13:42:53 +0000 (14:42 +0100)
Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php

index 5733c3977f6202414b9f26c5f97f00953c033a3b..f7afbca8ca123e513b6d4a7ce5ba50a1c67ee3c5 100644 (file)
@@ -323,9 +323,7 @@ class UserNotificationHandler extends SingletonFactory
                     $jobs[] = new ServiceWorkerDeliveryBackgroundJob($workerID, $notification->notificationID);
                 }
             }
-            if ($jobs !== []) {
-                BackgroundQueueHandler::getInstance()->enqueueIn($jobs);
-            }
+            BackgroundQueueHandler::getInstance()->enqueueIn($jobs);
             // reset notification count
             UserStorageHandler::getInstance()->reset(\array_keys($recipients), 'userNotificationCount');