diff options
| author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-09-08 16:02:32 -0500 |
|---|---|---|
| committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-09-08 16:02:32 -0500 |
| commit | 1e53f7df9d430422e7bb827f3449ef744fc1ed6f (patch) | |
| tree | 294a36b33776678c4aea59a01bdc258fb9567d67 /phpBB/includes/notifications/service.php | |
| parent | a4eb8bf47a77cb2637bfad5db20ab9f0dc236059 (diff) | |
| download | forums-1e53f7df9d430422e7bb827f3449ef744fc1ed6f.tar forums-1e53f7df9d430422e7bb827f3449ef744fc1ed6f.tar.gz forums-1e53f7df9d430422e7bb827f3449ef744fc1ed6f.tar.bz2 forums-1e53f7df9d430422e7bb827f3449ef744fc1ed6f.tar.xz forums-1e53f7df9d430422e7bb827f3449ef744fc1ed6f.zip | |
[ticket/11103] Fixing some db columns that were of the incorrect type
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notifications/service.php')
| -rw-r--r-- | phpBB/includes/notifications/service.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/notifications/service.php b/phpBB/includes/notifications/service.php index ba57fe9f72..a689e1c68a 100644 --- a/phpBB/includes/notifications/service.php +++ b/phpBB/includes/notifications/service.php @@ -141,7 +141,7 @@ class phpbb_notifications_service */ // find out which users want to receive this type of notification - $notify_users = $item_type_class_name::find_users_for_notification($data); + $notify_users = $item_type_class_name::find_users_for_notification($this->phpbb_container, $data); // Make sure not to send new notifications to users who've already been notified about this item // This may happen when an item was added, but now new users are able to see the item @@ -155,6 +155,11 @@ class phpbb_notifications_service } $this->db->sql_freeresult($result); + if (!sizeof($notify_users)) + { + return; + } + // Go through each user so we can insert a row in the DB and then notify them by their desired means foreach ($notify_users as $user => $methods) { |
