mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17347] Get rid of not needed code duplication
PHPBB-17347
This commit is contained in:
parent
7f9bcc2743
commit
fa893f092b
1 changed files with 1 additions and 5 deletions
|
@ -216,11 +216,7 @@ class delete_id extends command
|
||||||
*/
|
*/
|
||||||
protected function delete_bot_user(array $user_row): void
|
protected function delete_bot_user(array $user_row): void
|
||||||
{
|
{
|
||||||
$sql = 'DELETE FROM ' . $this->bots_table . '
|
$delete_tables = [$this->bots_table, $this->user_group_table, $this->users_table];
|
||||||
WHERE user_id = ' . (int) $user_row['user_id'];
|
|
||||||
$this->db->sql_query($sql);
|
|
||||||
|
|
||||||
$delete_tables = [$this->user_group_table, $this->users_table];
|
|
||||||
foreach ($delete_tables as $table)
|
foreach ($delete_tables as $table)
|
||||||
{
|
{
|
||||||
$sql = "DELETE FROM $table
|
$sql = "DELETE FROM $table
|
||||||
|
|
Loading…
Add table
Reference in a new issue