diff options
author | Tom N Harris <tnharris@whoopdedo.org> | 2010-11-15 15:48:31 -0500 |
---|---|---|
committer | Tom N Harris <tnharris@whoopdedo.org> | 2010-11-15 15:48:31 -0500 |
commit | 5bcab0c47360e5b31237885cff4583e0eba479f8 (patch) | |
tree | ab5f049d7400f48b8d73fc3bea8328683a8b300b | |
parent | 4e1bf408de9297d5773cd8bfe1af997c83eab1a2 (diff) | |
download | rpg-5bcab0c47360e5b31237885cff4583e0eba479f8.tar.gz rpg-5bcab0c47360e5b31237885cff4583e0eba479f8.tar.bz2 |
tokenizer was returning prematurely
-rw-r--r-- | inc/indexer.php | 4 |
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; } } |