aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.php b/index.php
index 289059227..c6ce22f56 100644
--- a/index.php
+++ b/index.php
@@ -241,6 +241,15 @@ if ( empty($page['is_external']) or !$page['is_external'] )
$tag['URL'] = make_index_url(array('tags'=>array($tag)));
$template->append( 'tag_search_results', $tag);
}
+
+ if (empty($page['items']))
+ {
+ $template->append( 'no_search_results', $page['qsearch_details']['q']);
+ }
+ elseif (!empty($page['qsearch_details']['unmatched_terms']))
+ {
+ $template->assign( 'no_search_results', $page['qsearch_details']['unmatched_terms']);
+ }
}
// image order