[ticket/9687] Improve ban query

PHPBB3-9687
This commit is contained in:
Marc Alexander 2023-11-05 20:21:13 +01:00
parent 51ea6d8241
commit 0901633349
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -749,8 +749,9 @@ function user_delete($mode, $user_ids, $retain_username = true)
$db->sql_query($sql); $db->sql_query($sql);
// Delete the user_id from the banlist // Delete the user_id from the banlist
$sql = 'DELETE FROM ' . BANS_TABLE . ' $sql = 'DELETE FROM ' . BANS_TABLE . "
WHERE ban_mode = \'user\' AND ' . $db->sql_in_set('ban_userid', $user_ids); WHERE ban_mode = 'user'
AND " . $db->sql_in_set('ban_userid', $user_ids);
$db->sql_query($sql); $db->sql_query($sql);
// Delete the user_id from the session table // Delete the user_id from the session table