aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-06-24 20:15:01 +0530
committerDhruv <dhruv.goel92@gmail.com>2014-03-08 21:15:51 +0530
commitf4645a63762749b2c3d196c57db5a10cc93b04ca (patch)
treeec62831dd37047f93a01cc9d6e1473d25b227179
parent9f4908f0f2896d60c348f4e52ef4a200a8404bd7 (diff)
downloadforums-f4645a63762749b2c3d196c57db5a10cc93b04ca.tar
forums-f4645a63762749b2c3d196c57db5a10cc93b04ca.tar.gz
forums-f4645a63762749b2c3d196c57db5a10cc93b04ca.tar.bz2
forums-f4645a63762749b2c3d196c57db5a10cc93b04ca.tar.xz
forums-f4645a63762749b2c3d196c57db5a10cc93b04ca.zip
[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
-rw-r--r--phpBB/search.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index ad9c371f63..0f13dbbfa0 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -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))