mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
[ticket/17117] Do not load non-existent/disabled notification methods
Non-existent or disabled notification methods (f.e. added by extensions which were later disabled/purged) should not be loaded. PHPBB3-17117
This commit is contained in:
parent
565053f508
commit
f31ea59a1a
1 changed files with 7 additions and 2 deletions
|
@ -411,12 +411,17 @@ class manager
|
||||||
|
|
||||||
foreach ($methods as $method)
|
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]))
|
if (!isset($notification_methods[$method]))
|
||||||
{
|
{
|
||||||
$notification_methods[$method] = $this->get_method_class($method);
|
$notification_methods[$method] = $this->get_method_class($method);
|
||||||
}
|
}
|
||||||
|
|
||||||
$notification_methods[$method]->add_to_queue($notification);
|
$notification_methods[$method]->add_to_queue($notification);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue