summaryrefslogtreecommitdiff
path: root/ajax.php
diff options
context:
space:
mode:
Diffstat (limited to 'ajax.php')
-rw-r--r--ajax.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/ajax.php b/ajax.php
index 7af88d835..26bccc4d0 100644
--- a/ajax.php
+++ b/ajax.php
@@ -30,6 +30,7 @@ if(function_exists($call)){
*/
function ajax_qsearch(){
global $conf;
+ global $lang;
$query = cleanID($_REQUEST['q']);
if(empty($query)) return;
@@ -41,6 +42,9 @@ function ajax_qsearch(){
$data = array();
search($data,$conf['datadir'],'search_qsearch',array(query => $query),$nsdir);
+ if(!count($data)) return;
+
+ print '<b>'.$lang['quickhits'].'</b>';
print html_buildlist($data,'qsearch','html_list_index');
}