1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

Merge pull request #6580 from rxu/ticket/17117

[ticket/17117] Do not load non-existent/disabled notification methods
This commit is contained in:
Marc Alexander
2024-01-02 16:47:49 +01:00
2 changed files with 14 additions and 2 deletions

View File

@@ -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);
}
}