aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2015-06-08 01:59:08 +0200
committerAndreas Fischer <bantu@phpbb.com>2015-06-08 01:59:08 +0200
commitf94bbcb4fe16ec70e184977ffbf1f39d47447f5f (patch)
treeb9fdcbfcaaed7f12cb96f04f8039f39c9c91afe2 /phpBB
parent25c4c481d74f2272218fced8506cb7861eec8a75 (diff)
parent29cda5f2ad0eb94cc8e040db648ed294c95f4f69 (diff)
downloadforums-f94bbcb4fe16ec70e184977ffbf1f39d47447f5f.tar
forums-f94bbcb4fe16ec70e184977ffbf1f39d47447f5f.tar.gz
forums-f94bbcb4fe16ec70e184977ffbf1f39d47447f5f.tar.bz2
forums-f94bbcb4fe16ec70e184977ffbf1f39d47447f5f.tar.xz
forums-f94bbcb4fe16ec70e184977ffbf1f39d47447f5f.zip
Merge pull request #3691 from CHItA/ticket/13888
[ticket/13888] Fix sql_freeresult() error on author searches * CHItA/ticket/13888: [ticket/13888] Fix sql_freeresult() error on author searches
Diffstat (limited to 'phpBB')
-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';