aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/search/fulltext_native.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-09-17 00:05:09 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-09-17 00:05:09 +0200
commit2dbc9e10169879d3dea1aed6aaafbcd29a86784e (patch)
tree52003290e8665afe4d2ab97ec6c8fba8cd9ac310 /phpBB/phpbb/search/fulltext_native.php
parent271e8b43f9c46385a799cc3ff1bf86e7ea66efbe (diff)
parent33584f12f0c717e18f47a77e13df57a0905dae8c (diff)
downloadforums-2dbc9e10169879d3dea1aed6aaafbcd29a86784e.tar
forums-2dbc9e10169879d3dea1aed6aaafbcd29a86784e.tar.gz
forums-2dbc9e10169879d3dea1aed6aaafbcd29a86784e.tar.bz2
forums-2dbc9e10169879d3dea1aed6aaafbcd29a86784e.tar.xz
forums-2dbc9e10169879d3dea1aed6aaafbcd29a86784e.zip
Merge branch '3.1.x' into 3.2.x
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 63c17b6ded..580d9b6878 100644
--- a/phpBB/phpbb/search/fulltext_native.php
+++ b/phpBB/phpbb/search/fulltext_native.php
@@ -1261,7 +1261,7 @@ class fulltext_native extends \phpbb\search\base
if (!$total_results && $is_mysql)
{
// 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 ' . $select, $sql);
+ $sql_calc = str_replace('SELECT ' . $select, 'SELECT SQL_CALC_FOUND_ROWS ' . $select, $sql);
$result = $this->db->sql_query($sql_calc);
$this->db->sql_freeresult($result);