diff options
author | Andreas Fischer <bantu@phpbb.com> | 2016-09-15 19:30:29 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2016-09-15 19:30:29 +0200 |
commit | 32ba128ea55a6ff5aa10277b4164d7dca740dfaa (patch) | |
tree | ba382601dea02537d63cec73f7358565f3a91644 | |
parent | 70aa4407d3e045c3ed214e2147110e82a7b0d27c (diff) | |
parent | 6d589a8bb9d24133b2d8b2d4bbf0623931bc438c (diff) | |
download | forums-32ba128ea55a6ff5aa10277b4164d7dca740dfaa.tar forums-32ba128ea55a6ff5aa10277b4164d7dca740dfaa.tar.gz forums-32ba128ea55a6ff5aa10277b4164d7dca740dfaa.tar.bz2 forums-32ba128ea55a6ff5aa10277b4164d7dca740dfaa.tar.xz forums-32ba128ea55a6ff5aa10277b4164d7dca740dfaa.zip |
Merge pull request #4444 from DavidIQ/ticket/14782
[ticket/14782] Use the $select variable in "Your Posts" search
* DavidIQ/ticket/14782:
[ticket/14782] Use the $select variable in "Your Posts" 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); |