aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-02-02 17:28:07 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-02-02 17:36:39 +0100
commita166f6f42c1910c7987eef5597341863b2434b32 (patch)
tree5323f007bd9d1118ad742dd6f64fc76ee7e4f923 /phpBB/includes
parent9f59aa59d92c6641308a0c1d51a5d4e41d37b2ec (diff)
downloadforums-a166f6f42c1910c7987eef5597341863b2434b32.tar
forums-a166f6f42c1910c7987eef5597341863b2434b32.tar.gz
forums-a166f6f42c1910c7987eef5597341863b2434b32.tar.bz2
forums-a166f6f42c1910c7987eef5597341863b2434b32.tar.xz
forums-a166f6f42c1910c7987eef5597341863b2434b32.zip
[ticket/13569] Add missing sql_freeresults and remove unneeded results
PHPBB3-13569
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/mcp/mcp_front.php2
-rw-r--r--phpBB/includes/mcp/mcp_main.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php
index ebcf7ce643..500db55456 100644
--- a/phpBB/includes/mcp/mcp_front.php
+++ b/phpBB/includes/mcp/mcp_front.php
@@ -234,6 +234,7 @@ function mcp_front_view($id, $mode, $action)
'ATTACH_ICON_IMG' => ($auth->acl_get('u_download') && $auth->acl_get('f_download', $row['forum_id']) && $row['post_attachment']) ? $user->img('icon_topic_attach', $user->lang['TOTAL_ATTACHMENTS']) : '',
));
}
+ $db->sql_freeresult($result);
}
$template->assign_vars(array(
@@ -290,6 +291,7 @@ function mcp_front_view($id, $mode, $action)
$pm_by_id[(int) $row['msg_id']] = $row;
$pm_list[] = (int) $row['msg_id'];
}
+ $db->sql_freeresult($result);
$address_list = get_recipient_strings($pm_by_id);
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php
index 227ae84bd6..1241b8bd0e 100644
--- a/phpBB/includes/mcp/mcp_main.php
+++ b/phpBB/includes/mcp/mcp_main.php
@@ -1276,6 +1276,7 @@ function mcp_fork_topic($topic_ids)
$db->sql_query('INSERT INTO ' . POLL_OPTIONS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary));
}
+ $db->sql_freeresult($result);
}
$sql = 'SELECT *