diff options
-rw-r--r-- | inc/fulltext.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php index 36a1b049d..35f789376 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -32,6 +32,7 @@ function ft_pageSearch($query,&$poswords){ $words = array_merge($q['and'],$q['not']); if(!count($words)) return array(); $result = idx_lookup($words); + if(!count($result)) return array(); // merge search results with query foreach($q['and'] as $pos => $w){ |