mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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
This commit is contained in:
parent
337f1c33c9
commit
c6c2d325bf
2 changed files with 5 additions and 5 deletions
|
@ -141,6 +141,7 @@
|
||||||
<li>[Fix] Pertain select single link on memberlist (Bug #23235 - patch provided by Schumi)</li>
|
<li>[Fix] Pertain select single link on memberlist (Bug #23235 - patch provided by Schumi)</li>
|
||||||
<li>[Fix] Allow & and | in local part of email addresses (Bug #22995)</li>
|
<li>[Fix] Allow & and | in local part of email addresses (Bug #22995)</li>
|
||||||
<li>[Fix] Do not error out if php_uname function disabled / Authenticating on SMTP Server (Bug #22235 - patch by HoL)</li>
|
<li>[Fix] Do not error out if php_uname function disabled / Authenticating on SMTP Server (Bug #22235 - patch by HoL)</li>
|
||||||
|
<li>[Fix] Correctly obtain to be ignored users within topic/forum notification (Bug #21795 - patch provided by dr.death)</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -1121,16 +1121,15 @@ function user_notification($mode, $subject, $topic_title, $forum_name, $forum_id
|
||||||
|
|
||||||
// Get banned User ID's
|
// Get banned User ID's
|
||||||
$sql = 'SELECT ban_userid
|
$sql = 'SELECT ban_userid
|
||||||
FROM ' . BANLIST_TABLE;
|
FROM ' . BANLIST_TABLE . '
|
||||||
|
WHERE ban_userid <> 0
|
||||||
|
AND ban_exclude <> 1';
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
$sql_ignore_users = ANONYMOUS . ', ' . $user->data['user_id'];
|
$sql_ignore_users = ANONYMOUS . ', ' . $user->data['user_id'];
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
if (isset($row['ban_userid']))
|
$sql_ignore_users .= ', ' . (int) $row['ban_userid'];
|
||||||
{
|
|
||||||
$sql_ignore_users .= ', ' . $row['ban_userid'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue