summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-03-03 23:01:43 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-03-03 23:01:43 +0100
commit050823751f8dc9d4b77b388ebeec9beb0238ecb2 (patch)
tree9f53f6b6af069d857dd4d7cc7229b4ae11b13ff4
parent5f70445d51e06ae1a3d1bf820f97238942985fde (diff)
downloadrpg-050823751f8dc9d4b77b388ebeec9beb0238ecb2.tar.gz
rpg-050823751f8dc9d4b77b388ebeec9beb0238ecb2.tar.bz2
fixed warning whith no search results FS#1088
darcs-hash:20070303220143-7ad00-5d592dbebaae371c03102b20ae7e0d9e433b378b.gz
-rw-r--r--inc/fulltext.php1
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){