From 050823751f8dc9d4b77b388ebeec9beb0238ecb2 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 3 Mar 2007 23:01:43 +0100 Subject: fixed warning whith no search results FS#1088 darcs-hash:20070303220143-7ad00-5d592dbebaae371c03102b20ae7e0d9e433b378b.gz --- inc/fulltext.php | 1 + 1 file changed, 1 insertion(+) 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){ -- cgit v1.2.3