phpBB 3.2.1 -> includes/functions_user.php
line #3647 as it is now (SQL report: Impossible WHERE noticed after reading const tables)
Code: Select all
$sql_user_ids = (!empty($user_ids)) ? $db->sql_in_set('ban_userid', $user_ids) : 'ban_userid <> 0';
Code: Select all
$sql_user_ids = (!empty($user_ids)) ? $db->sql_in_set('ban_userid', $user_ids) : 'ban_userid <> 1';
If confirmed I will be more than glad to push a request.
What about if an user for some reason changed that constant during the life of its board?
Say a conversion or an upgrade from phpBB 1/2 ?