aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2017-11-17 01:31:31 +0100
committerOliver Schramm <oliver.schramm97@gmail.com>2017-11-17 01:31:31 +0100
commit719a49d38793f1490988ed0fa3fea84da17d3886 (patch)
tree685170a9c790e185771354dc9e09b026a4b2d5c4 /phpBB/phpbb/db
parentaa961991fdafc8a0371d22c7e42f2424ee1b8898 (diff)
downloadforums-719a49d38793f1490988ed0fa3fea84da17d3886.tar
forums-719a49d38793f1490988ed0fa3fea84da17d3886.tar.gz
forums-719a49d38793f1490988ed0fa3fea84da17d3886.tar.bz2
forums-719a49d38793f1490988ed0fa3fea84da17d3886.tar.xz
forums-719a49d38793f1490988ed0fa3fea84da17d3886.zip
[ticket/15339] Free sql results in migration module tool
PHPBB3-15339
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/tool/module.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/migration/tool/module.php b/phpBB/phpbb/db/migration/tool/module.php
index 3b4728c9d7..e1dfe40709 100644
--- a/phpBB/phpbb/db/migration/tool/module.php
+++ b/phpBB/phpbb/db/migration/tool/module.php
@@ -273,8 +273,9 @@ class module implements \phpbb\db\migration\tool\tool_interface
AND parent_id = " . (int) $parent . "
AND module_langname = '" . $this->db->sql_escape($before_langname) . "'"
. (($before_mode) ? " AND module_mode = '" . $this->db->sql_escape($before_mode) . "'" : '');
- $this->db->sql_query($sql);
+ $result = $this->db->sql_query($sql);
$to_left = (int) $this->db->sql_fetchfield('left_id');
+ $this->db->sql_freeresult($result);
$sql = 'UPDATE ' . $this->modules_table . "
SET left_id = left_id + 2, right_id = right_id + 2
@@ -309,8 +310,9 @@ class module implements \phpbb\db\migration\tool\tool_interface
AND parent_id = " . (int) $parent . "
AND module_langname = '" . $this->db->sql_escape($after_langname) . "'"
. (($after_mode) ? " AND module_mode = '" . $this->db->sql_escape($after_mode) . "'" : '');
- $this->db->sql_query($sql);
+ $result = $this->db->sql_query($sql);
$to_right = (int) $this->db->sql_fetchfield('right_id');
+ $this->db->sql_freeresult($result);
$sql = 'UPDATE ' . $this->modules_table . "
SET left_id = left_id + 2, right_id = right_id + 2