diff options
author | Derky <derky@phpbb.com> | 2018-09-15 12:59:57 +0200 |
---|---|---|
committer | Derky <derky@phpbb.com> | 2018-09-15 12:59:57 +0200 |
commit | bb20a88748d63502e47de4a3a8fb4b2e6653ac92 (patch) | |
tree | 6aa93ad715d7d00e97f3112609acbad38a447219 /phpBB/phpbb/db/migration | |
parent | 9ea60e3478e6c645b8091ae10e8c0a594b9708cf (diff) | |
parent | 271c9d34dc8a2556bb0fa164258d2264fb512aca (diff) | |
download | forums-bb20a88748d63502e47de4a3a8fb4b2e6653ac92.tar forums-bb20a88748d63502e47de4a3a8fb4b2e6653ac92.tar.gz forums-bb20a88748d63502e47de4a3a8fb4b2e6653ac92.tar.bz2 forums-bb20a88748d63502e47de4a3a8fb4b2e6653ac92.tar.xz forums-bb20a88748d63502e47de4a3a8fb4b2e6653ac92.zip |
Merge pull request #5352 from senky/ticket/15744-2
[ticket/15744] Remove useless sql_freeresults
Diffstat (limited to 'phpBB/phpbb/db/migration')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v320/remove_outdated_media.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/phpbb/db/migration/data/v320/remove_outdated_media.php b/phpBB/phpbb/db/migration/data/v320/remove_outdated_media.php index 98b1c2d039..88fe59ccc9 100644 --- a/phpBB/phpbb/db/migration/data/v320/remove_outdated_media.php +++ b/phpBB/phpbb/db/migration/data/v320/remove_outdated_media.php @@ -85,13 +85,11 @@ class remove_outdated_media extends \phpbb\db\migration\migration WHERE ' . $this->db->sql_in_set('group_id', $group_ids); } - $result = $this->db->sql_query($sql); - $this->db->sql_freeresult($result); + $this->db->sql_query($sql); // delete the now empty, outdated media extension groups $sql = 'DELETE FROM ' . EXTENSION_GROUPS_TABLE . ' WHERE ' . $this->db->sql_in_set('group_id', $group_ids); - $result = $this->db->sql_query($sql); - $this->db->sql_freeresult($result); + $this->db->sql_query($sql); } } |