aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notifications/service.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-09-08 16:12:20 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-09-08 16:12:20 -0500
commit86b801df7304d43f117bea762710149c25385260 (patch)
treeb2b7be759986c33ea420b49deae901a712faff7d /phpBB/includes/notifications/service.php
parent1e53f7df9d430422e7bb827f3449ef744fc1ed6f (diff)
downloadforums-86b801df7304d43f117bea762710149c25385260.tar
forums-86b801df7304d43f117bea762710149c25385260.tar.gz
forums-86b801df7304d43f117bea762710149c25385260.tar.bz2
forums-86b801df7304d43f117bea762710149c25385260.tar.xz
forums-86b801df7304d43f117bea762710149c25385260.zip
[ticket/11103] Some fixes for the email method
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notifications/service.php')
-rw-r--r--phpBB/includes/notifications/service.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/phpBB/includes/notifications/service.php b/phpBB/includes/notifications/service.php
index a689e1c68a..74e2e29e1a 100644
--- a/phpBB/includes/notifications/service.php
+++ b/phpBB/includes/notifications/service.php
@@ -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);
}
}
}