diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-03-18 14:47:43 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-03-18 14:47:43 +0000 |
commit | 02a5032a52784339e75d0d3fc9c24e92e235c26b (patch) | |
tree | 7be064ec5e37c3a81e35971a7f7d8c5519388f6c /phpBB/includes/functions_posting.php | |
parent | c34599126fe8a7d38b604ceb92136be6a6c89ee8 (diff) | |
download | forums-02a5032a52784339e75d0d3fc9c24e92e235c26b.tar forums-02a5032a52784339e75d0d3fc9c24e92e235c26b.tar.gz forums-02a5032a52784339e75d0d3fc9c24e92e235c26b.tar.bz2 forums-02a5032a52784339e75d0d3fc9c24e92e235c26b.tar.xz forums-02a5032a52784339e75d0d3fc9c24e92e235c26b.zip |
merging... again
git-svn-id: file:///svn/phpbb/trunk@8452 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 7eba43c955..a2482c64c4 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); |