summaryrefslogtreecommitdiff
path: root/inc/indexer.php
diff options
context:
space:
mode:
authorTom N Harris <tnharris@whoopdedo.org>2010-11-15 15:48:31 -0500
committerTom N Harris <tnharris@whoopdedo.org>2010-11-15 15:48:31 -0500
commit5bcab0c47360e5b31237885cff4583e0eba479f8 (patch)
treeab5f049d7400f48b8d73fc3bea8328683a8b300b /inc/indexer.php
parent4e1bf408de9297d5773cd8bfe1af997c83eab1a2 (diff)
downloadrpg-5bcab0c47360e5b31237885cff4583e0eba479f8.tar.gz
rpg-5bcab0c47360e5b31237885cff4583e0eba479f8.tar.bz2
tokenizer was returning prematurely
Diffstat (limited to 'inc/indexer.php')
-rw-r--r--inc/indexer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index 56d80b7fa..b3e10a548 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -690,9 +690,9 @@ function idx_tokenizer($string,&$stopwords,$wc=false){
}
}else{
$w = $word;
- if (!is_numeric($w) && strlen($w) < IDX_MINWORDLENGTH) return $words;
+ if (!is_numeric($w) && strlen($w) < IDX_MINWORDLENGTH) continue;
$w = strtolower($w);
- if(is_int(array_search("$w\n",$stopwords))) return $words;
+ if(is_int(array_search("$w\n",$stopwords))) continue;
$words[] = $w;
}
}