-
Bug
-
Resolution: Fixed
-
3.0.0
-
None
-
PHP Environment:
Database:
includes/functions_posting.php --> function user_notification
Maybe we receive a wrong result for the $sql_ignore_users
SEARCH:
// Get banned User ID's
|
$sql = 'SELECT ban_userid
|
FROM ' . BANLIST_TABLE;
|
BETTER:
// Get banned User ID's
|
$sql = 'SELECT ban_userid
|
FROM ' . BANLIST_TABLE . '
|
WHERE ban_userid <> 0
|
AND ban_exclude <> 1';
|
Reason:
- Bans with ban_userid = 0 are email bans. A user_id 0 does not exists.
- If a user is protected from bans it will have a ban_list entry with ban_exclude = 1