aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-03-18 14:36:44 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-03-18 14:36:44 +0000
commitc6c2d325bfb9626c33da97f477ae161b464adae0 (patch)
tree2f450ae7415248268b4b0539b3bfd932da4e2b85 /phpBB/includes/functions_posting.php
parent337f1c33c9ee760db180d0628e756bed61c75020 (diff)
downloadforums-c6c2d325bfb9626c33da97f477ae161b464adae0.tar
forums-c6c2d325bfb9626c33da97f477ae161b464adae0.tar.gz
forums-c6c2d325bfb9626c33da97f477ae161b464adae0.tar.bz2
forums-c6c2d325bfb9626c33da97f477ae161b464adae0.tar.xz
forums-c6c2d325bfb9626c33da97f477ae161b464adae0.zip
Correctly obtain to be ignored users within topic/forum notification (Bug #21795 - patch provided by dr.death)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8450 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 615c65e1ad..2f12732e8b 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -1121,16 +1121,15 @@ function user_notification($mode, $subject, $topic_title, $forum_name, $forum_id
// Get banned User ID's
$sql = 'SELECT ban_userid
- FROM ' . BANLIST_TABLE;
+ FROM ' . BANLIST_TABLE . '
+ WHERE ban_userid <> 0
+ AND ban_exclude <> 1';
$result = $db->sql_query($sql);
$sql_ignore_users = ANONYMOUS . ', ' . $user->data['user_id'];
while ($row = $db->sql_fetchrow($result))
{
- if (isset($row['ban_userid']))
- {
- $sql_ignore_users .= ', ' . $row['ban_userid'];
- }
+ $sql_ignore_users .= ', ' . (int) $row['ban_userid'];
}
$db->sql_freeresult($result);