mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
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
This commit is contained in:
commit
f94bbcb4fe
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue