From 8d5ce7bbb467c131fd99150628fd35aa89dbb4a6 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 12 Oct 2003 14:56:53 +0000 Subject: [PATCH] do not delete all users, i do not know if this was intended paul. :) user_jabber not used within messenger object, only 'email' defined. git-svn-id: file:///svn/phpbb/trunk@4581 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index a851a15670..92cabba152 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1198,22 +1198,18 @@ function user_notification($mode, $subject, $topic_title, $forum_name, $forum_id } - $perms = array(); -/* foreach (discover_auth(array_keys($notify_rows), array('f_read'), $forum_id) as $user_id => $forum_ary) + foreach (discover_auth(array_keys($notify_rows), array('f_read'), $forum_id) as $user_id => $forum_ary) { foreach ($forum_ary as $forum_id => $option_ary) { if (array_sum(array_values($option_ary))) { - echo array_sum(array_values($option_ary)); - echo " >> "; -// $perms[] = $user_id; -// break; + $notify_rows[$user_id]['allowed'] = true; + break; } } - print_r($forum_ary); } -*/ + // Now, we have to do a little step before really sending, we need to distinguish our users a little bit. ;) $email_users = $delete_ids = $update_notification = array();