mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02: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:
@@ -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,
|
||||
|
||||
|
Reference in New Issue
Block a user