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

[ticket/11103] Work on the pm type and email method

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-08 15:48:46 -05:00
parent 7b0b6fc63c
commit 7fee0cfdf6
7 changed files with 159 additions and 28 deletions

View File

@@ -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