diff options
| author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-09-08 15:48:46 -0500 | 
|---|---|---|
| committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-09-08 15:48:46 -0500 | 
| commit | 7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0 (patch) | |
| tree | 47313d9dbe6adc84d67c08d06a510a4c6fb05b43 /phpBB/includes/notifications/service.php | |
| parent | 7b0b6fc63c2593cafaa84cc38a9b3029af1ed369 (diff) | |
| download | forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar.gz forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar.bz2 forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar.xz forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.zip  | |
[ticket/11103] Work on the pm type and email method
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notifications/service.php')
| -rw-r--r-- | phpBB/includes/notifications/service.php | 14 | 
1 files changed, 1 insertions, 13 deletions
diff --git a/phpBB/includes/notifications/service.php b/phpBB/includes/notifications/service.php index 32211b26cf..ba57fe9f72 100644 --- a/phpBB/includes/notifications/service.php +++ b/phpBB/includes/notifications/service.php @@ -141,19 +141,7 @@ class phpbb_notifications_service  		*/  		// find out which users want to receive this type of notification -		$sql = 'SELECT user_id FROM ' . USERS_TABLE . ' -			WHERE ' . $this->db->sql_in_set('user_id', array(2)); -		$result = $this->db->sql_query($sql); -		while ($row = $this->db->sql_fetchrow($result)) -		{ -			if (!isset($notify_users[$row['user_id']])) -			{ -				$notify_users[$row['user_id']] = array(); -			} - -			$notify_users[$row['user_id']][] = ''; -		} -		$this->db->sql_freeresult($result); +		$notify_users = $item_type_class_name::find_users_for_notification($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  | 
