From 888a05999447a0a7d12e33ffdb4fc2309e19265e Mon Sep 17 00:00:00 2001 From: Cesar G Date: Fri, 21 Feb 2014 12:31:52 -0800 Subject: [PATCH] [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 --- phpBB/search.php | 1 - 1 file changed, 1 deletion(-) 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,