mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
[ticket/9687] Improve ban query
PHPBB3-9687
This commit is contained in:
parent
51ea6d8241
commit
0901633349
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue