diff options
Diffstat (limited to 'inc/indexer.php')
-rw-r--r-- | inc/indexer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php index fe8e74bd9..6ece84d7b 100644 --- a/inc/indexer.php +++ b/inc/indexer.php @@ -316,7 +316,7 @@ function idx_tokenizer($string,&$stopwords){ foreach ($arr as $w) { if (!is_numeric($w) && strlen($w) < 3) continue; $w = utf8_strtolower($w); - if(is_int(array_search("$w\n",$stopwords))) continue; + if($stopwords && is_int(array_search("$w\n",$stopwords))) continue; $words[] = $w; } }else{ |