mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-26 05:08:52 +00: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:
parent
9f4908f0f2
commit
f4645a6376
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
$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 = '';
|
$sql_where = '';
|
||||||
|
|
||||||
if (sizeof($id_ary))
|
if (sizeof($id_ary))
|
||||||
|
|
Loading…
Add table
Reference in a new issue