mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[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
This commit is contained in:
parent
e56f562d47
commit
888a059994
1 changed files with 0 additions and 1 deletions
|
@ -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,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue