aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/search/fulltext_native.php
diff options
context:
space:
mode:
authorCHItA <mate.bartus@gmail.com>2015-06-07 15:04:34 +0200
committerCHItA <mate.bartus@gmail.com>2015-06-07 17:41:17 +0200
commit29cda5f2ad0eb94cc8e040db648ed294c95f4f69 (patch)
treeefde5589a9925a7d22c6e1f125b4f076f8960813 /phpBB/phpbb/search/fulltext_native.php
parent91212d54534e726fdbd3b3b4c085869fd4b02e76 (diff)
downloadforums-29cda5f2ad0eb94cc8e040db648ed294c95f4f69.tar
forums-29cda5f2ad0eb94cc8e040db648ed294c95f4f69.tar.gz
forums-29cda5f2ad0eb94cc8e040db648ed294c95f4f69.tar.bz2
forums-29cda5f2ad0eb94cc8e040db648ed294c95f4f69.tar.xz
forums-29cda5f2ad0eb94cc8e040db648ed294c95f4f69.zip
[ticket/13888] Fix sql_freeresult() error on author searches
PHPBB3-13888
Diffstat (limited to 'phpBB/phpbb/search/fulltext_native.php')
-rw-r--r--phpBB/phpbb/search/fulltext_native.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/search/fulltext_native.php b/phpBB/phpbb/search/fulltext_native.php
index 4d02dd1cbf..ab7d7745e0 100644
--- a/phpBB/phpbb/search/fulltext_native.php
+++ b/phpBB/phpbb/search/fulltext_native.php
@@ -1075,7 +1075,7 @@ class fulltext_native extends \phpbb\search\base
// Count rows for the executed queries. Replace $select within $sql with SQL_CALC_FOUND_ROWS, and run it.
$sql_calc = str_replace('SELECT ' . $select, 'SELECT DISTINCT SQL_CALC_FOUND_ROWS p.post_id', $sql);
- $this->db->sql_query($sql_calc);
+ $result = $this->db->sql_query($sql_calc);
$this->db->sql_freeresult($result);
$sql_count = 'SELECT FOUND_ROWS() as total_results';