1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/9687] Adjust queries to be compatible with postgres

PHPBB3-9687
This commit is contained in:
Marc Alexander
2023-07-31 16:41:34 +02:00
parent 0414536727
commit 0be1ffd296
5 changed files with 11 additions and 7 deletions

View File

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