From fa893f092b1381ab85f3c70f7ed589a28b6d6b22 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 22 Jun 2024 07:33:06 +0200 Subject: [PATCH] [ticket/17347] Get rid of not needed code duplication PHPBB-17347 --- phpBB/phpbb/console/command/user/delete_id.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/phpBB/phpbb/console/command/user/delete_id.php b/phpBB/phpbb/console/command/user/delete_id.php index f189fe72cc..ac00138a17 100644 --- a/phpBB/phpbb/console/command/user/delete_id.php +++ b/phpBB/phpbb/console/command/user/delete_id.php @@ -216,11 +216,7 @@ class delete_id extends command */ protected function delete_bot_user(array $user_row): void { - $sql = 'DELETE FROM ' . $this->bots_table . ' - WHERE user_id = ' . (int) $user_row['user_id']; - $this->db->sql_query($sql); - - $delete_tables = [$this->user_group_table, $this->users_table]; + $delete_tables = [$this->bots_table, $this->user_group_table, $this->users_table]; foreach ($delete_tables as $table) { $sql = "DELETE FROM $table