mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 08:01:27 +02:00
[ticket/10945] remove trigger_error call
removes trigger_error call incase no search results are found or start variable exceeds the amount. So that search query is displayed in the search box even if no results are returned. PHPBB3-10945
This commit is contained in:
@@ -540,12 +540,6 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
$total_match_count = $search->author_search($show_results, $firstpost_only, $sort_by_sql, $sort_key, $sort_dir, $sort_days, $ex_fid_ary, $m_approve_fid_ary, $topic_id, $author_id_ary, $sql_author_match, $id_ary, $start, $per_page);
|
||||
}
|
||||
|
||||
// For some searches we need to print out the "no results" page directly to allow re-sorting/refining the search options.
|
||||
if (!sizeof($id_ary) && !$search_id)
|
||||
{
|
||||
trigger_error('NO_SEARCH_RESULTS');
|
||||
}
|
||||
|
||||
$sql_where = '';
|
||||
|
||||
if (sizeof($id_ary))
|
||||
|
Reference in New Issue
Block a user