aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2012-11-10 13:39:40 +0100
committerDhruv <dhruv.goel92@gmail.com>2013-02-19 00:52:43 +0530
commit3e5ef8ab2cc1d8c6e0850e36ddb546489cc5ab12 (patch)
tree383267f9d53e940b35f449af97ae5e52a0937de8 /phpBB/includes/search
parent00d34617ccb6a53185f0e872a735b4dd2f65009b (diff)
downloadforums-3e5ef8ab2cc1d8c6e0850e36ddb546489cc5ab12.tar
forums-3e5ef8ab2cc1d8c6e0850e36ddb546489cc5ab12.tar.gz
forums-3e5ef8ab2cc1d8c6e0850e36ddb546489cc5ab12.tar.bz2
forums-3e5ef8ab2cc1d8c6e0850e36ddb546489cc5ab12.tar.xz
forums-3e5ef8ab2cc1d8c6e0850e36ddb546489cc5ab12.zip
[ticket/11179] pass start parameter by reference
start parameter is passed by reference so that in case it is not in bounds the changes made to it are reflected back to the phpBB/search.php file PHPBB3-11179
Diffstat (limited to 'phpBB/includes/search')
-rw-r--r--phpBB/includes/search/base.php2
-rw-r--r--phpBB/includes/search/fulltext_mysql.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/search/base.php b/phpBB/includes/search/base.php
index 11e5535979..2047742367 100644
--- a/phpBB/includes/search/base.php
+++ b/phpBB/includes/search/base.php
@@ -94,7 +94,7 @@ class phpbb_search_base
*
* @return int SEARCH_RESULT_NOT_IN_CACHE or SEARCH_RESULT_IN_CACHE or SEARCH_RESULT_INCOMPLETE
*/
- function obtain_ids($search_key, &$result_count, &$id_ary, $start, $per_page, $sort_dir)
+ function obtain_ids($search_key, &$result_count, &$id_ary, &$start, $per_page, $sort_dir)
{
global $cache;
if (!($stored_ids = $cache->get('_search_results_' . $search_key)))
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index acb1a7bde8..749353b2ee 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -353,7 +353,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 keyword_search($type, $fields, $terms, $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 keyword_search($type, $fields, $terms, $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 keywords? No posts
if (!$this->search_query)