aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2012-11-10 14:29:39 +0100
committerDhruv <dhruv.goel92@gmail.com>2013-02-19 00:52:46 +0530
commit80f8e3abceabab658a5a935e5a6079e73f663698 (patch)
tree3775f3a5b12a3c72de15c3b25ae7dbf6dae70a98 /phpBB
parent2601411a9cfb79de1c45523005e91f00a8583ad1 (diff)
downloadforums-80f8e3abceabab658a5a935e5a6079e73f663698.tar
forums-80f8e3abceabab658a5a935e5a6079e73f663698.tar.gz
forums-80f8e3abceabab658a5a935e5a6079e73f663698.tar.bz2
forums-80f8e3abceabab658a5a935e5a6079e73f663698.tar.xz
forums-80f8e3abceabab658a5a935e5a6079e73f663698.zip
[ticket/11179] pass start param by reference in author search
PHPBB3-11179
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index 54e2007da3..69f76ba99e 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -547,7 +547,7 @@ class phpbb_search_fulltext_mysql extends phpbb_search_base
* @param int $per_page number of ids each page is supposed to contain
* @return boolean|int total number of results
*/
- public function author_search($type, $firstpost_only, $sort_by_sql, $sort_key, $sort_dir, $sort_days, $ex_fid_ary, $m_approve_fid_ary, $topic_id, $author_ary, $author_name, &$id_ary, $start, $per_page)
+ public function author_search($type, $firstpost_only, $sort_by_sql, $sort_key, $sort_dir, $sort_days, $ex_fid_ary, $m_approve_fid_ary, $topic_id, $author_ary, $author_name, &$id_ary, &$start, $per_page)
{
// No author? No posts
if (!sizeof($author_ary))
@@ -578,7 +578,7 @@ class phpbb_search_fulltext_mysql extends phpbb_search_base
// try reading the results from cache
$result_count = 0;
- if ($this->obtain_ids($search_key, $result_count, $id_ary, $start, $per_page, $sort_dir) == SEARCH_RESULT_IN_CACHE)
+ if ($this->obtain_ids($search_key, $result_count, $id_ary, &$start, $per_page, $sort_dir) == SEARCH_RESULT_IN_CACHE)
{
return $result_count;
}