aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2018-09-13 17:49:24 +0200
committerJakub Senko <jakubsenko@gmail.com>2018-09-13 17:49:24 +0200
commit271c9d34dc8a2556bb0fa164258d2264fb512aca (patch)
tree1da7f0e7ac47f949b6f080e95822d11692aa8255
parentbd90a5358969e2bb82df34727ed8f6575781e5d2 (diff)
downloadforums-271c9d34dc8a2556bb0fa164258d2264fb512aca.tar
forums-271c9d34dc8a2556bb0fa164258d2264fb512aca.tar.gz
forums-271c9d34dc8a2556bb0fa164258d2264fb512aca.tar.bz2
forums-271c9d34dc8a2556bb0fa164258d2264fb512aca.tar.xz
forums-271c9d34dc8a2556bb0fa164258d2264fb512aca.zip
[ticket/15744] Remove useless sql_freeresults
PHPBB3-15744
-rw-r--r--phpBB/phpbb/db/migration/data/v320/remove_outdated_media.php6
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);
}
}