1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 10:44:20 +02:00

[ticket/11103] Some fixes for the email method

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-08 16:12:20 -05:00
parent 1e53f7df9d
commit 86b801df73
4 changed files with 20 additions and 26 deletions

View File

@@ -172,15 +172,14 @@ class phpbb_notifications_service
foreach ($methods as $method)
{
// setup the notification methods and add the notification to the queue
if ($row['method'])
if ($method)
{
if (!isset($notification_methods[$row['method']]))
if (!isset($notification_methods[$method]))
{
$method_class_name = 'phpbb_notifications_method_' . $row['method'];
$notification_methods[$row['method']] = new $method_class_name();
$method_class_name = 'phpbb_notifications_method_' . $method;
$notification_methods[$method] = new $method_class_name($this->phpbb_container);
}
$notification_methods[$row['method']]->add_to_queue($notification);
$notification_methods[$method]->add_to_queue($notification);
}
}
}