mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 14:35:56 +02:00
Merge pull request #5352 from senky/ticket/15744-2
[ticket/15744] Remove useless sql_freeresults
This commit is contained in:
commit
bb20a88748
@ -85,13 +85,11 @@ class remove_outdated_media extends \phpbb\db\migration\migration
|
|||||||
WHERE ' . $this->db->sql_in_set('group_id', $group_ids);
|
WHERE ' . $this->db->sql_in_set('group_id', $group_ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
$this->db->sql_freeresult($result);
|
|
||||||
|
|
||||||
// delete the now empty, outdated media extension groups
|
// delete the now empty, outdated media extension groups
|
||||||
$sql = 'DELETE FROM ' . EXTENSION_GROUPS_TABLE . '
|
$sql = 'DELETE FROM ' . EXTENSION_GROUPS_TABLE . '
|
||||||
WHERE ' . $this->db->sql_in_set('group_id', $group_ids);
|
WHERE ' . $this->db->sql_in_set('group_id', $group_ids);
|
||||||
$result = $this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
$this->db->sql_freeresult($result);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user