diff options
author | Cesar G <prototech91@gmail.com> | 2014-02-21 12:31:52 -0800 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2014-02-21 12:36:26 -0800 |
commit | 888a05999447a0a7d12e33ffdb4fc2309e19265e (patch) | |
tree | 5031b027bb1c8f08f3dea9b065fa719897b8cd69 /phpBB | |
parent | e56f562d476fe84706bbe23edfd844d5f782043d (diff) | |
download | forums-888a05999447a0a7d12e33ffdb4fc2309e19265e.tar forums-888a05999447a0a7d12e33ffdb4fc2309e19265e.tar.gz forums-888a05999447a0a7d12e33ffdb4fc2309e19265e.tar.bz2 forums-888a05999447a0a7d12e33ffdb4fc2309e19265e.tar.xz forums-888a05999447a0a7d12e33ffdb4fc2309e19265e.zip |
[ticket/12220] Fix division by zero in search page with no results.
The page url parameter no longer exists in the pagination.on_page() method,
therefore the page url passed is being divided by 0 - the total number of
items. Since PAGE_NUMBER is assigned in generate_template_pagination(), this
separate assignment is no longer needed.
PHPBB3-12220
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/search.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index 4ddade90f5..2d516502ed 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -602,7 +602,6 @@ if ($keywords || $author || $author_id || $search_id || $submit) 'SEARCH_WORDS' => $keywords, 'SEARCHED_QUERY' => $search->get_search_query(), 'IGNORED_WORDS' => (sizeof($common_words)) ? implode(' ', $common_words) : '', - 'PAGE_NUMBER' => $pagination->on_page($u_search, $total_match_count, $per_page, $start), 'PHRASE_SEARCH_DISABLED' => $phrase_search_disabled, |