diff options
author | DavidIQ <david@davidiq.com> | 2016-09-13 14:10:50 -0400 |
---|---|---|
committer | DavidIQ <david@davidiq.com> | 2016-09-13 14:10:50 -0400 |
commit | 6d589a8bb9d24133b2d8b2d4bbf0623931bc438c (patch) | |
tree | 5b6d6862de78282adde47f8ee4081c81f181d928 /phpBB/phpbb/search | |
parent | 4b8e8df55cce7653132cf67778d18cc66c2f6418 (diff) | |
download | forums-6d589a8bb9d24133b2d8b2d4bbf0623931bc438c.tar forums-6d589a8bb9d24133b2d8b2d4bbf0623931bc438c.tar.gz forums-6d589a8bb9d24133b2d8b2d4bbf0623931bc438c.tar.bz2 forums-6d589a8bb9d24133b2d8b2d4bbf0623931bc438c.tar.xz forums-6d589a8bb9d24133b2d8b2d4bbf0623931bc438c.zip |
[ticket/14782] Use the $select variable in "Your Posts" search
Diffstat (limited to 'phpBB/phpbb/search')
-rw-r--r-- | phpBB/phpbb/search/fulltext_native.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/search/fulltext_native.php b/phpBB/phpbb/search/fulltext_native.php index e2c02ffdab..99837f3e28 100644 --- a/phpBB/phpbb/search/fulltext_native.php +++ b/phpBB/phpbb/search/fulltext_native.php @@ -1262,7 +1262,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 p.post_id', $sql); + $sql_calc = str_replace('SELECT ' . $select, 'SELECT DISTINCT SQL_CALC_FOUND_ROWS ' . $select, $sql); $result = $this->db->sql_query($sql_calc); $this->db->sql_freeresult($result); |