diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php
index 8bc2c04baa..05572c346b 100644
--- a/phpBB/phpbb/notification/manager.php
+++ b/phpBB/phpbb/notification/manager.php
@@ -411,12 +411,17 @@ class manager
foreach ($methods as $method)
{
- // setup the notification methods and add the notification to the queue
+ // Do not load non-existent notification methods
+ if (!isset($this->notification_methods[$method]))
+ {
+ continue;
+ }
+
+ // Setup the notification methods and add the notification to the queue
if (!isset($notification_methods[$method]))
{
$notification_methods[$method] = $this->get_method_class($method);
}
-
$notification_methods[$method]->add_to_queue($notification);
}
}
diff --git a/tests/notification/fixtures/submit_post_notification.type.bookmark.xml b/tests/notification/fixtures/submit_post_notification.type.bookmark.xml
index db1cef2ef6..b6163e9ed0 100644
--- a/tests/notification/fixtures/submit_post_notification.type.bookmark.xml
+++ b/tests/notification/fixtures/submit_post_notification.type.bookmark.xml
@@ -159,5 +159,12 @@
notification.method.board
0
+
+ notification.type.bookmark
+ 0
+ 3
+ notification.method.nonexistent
+ 1
+