From 3cbaa9a4ac8aae40957eda92e4cf6885524c183a Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 21 Sep 2005 21:51:18 +0200 Subject: backlinkfix for pages with special characters #548 darcs-hash:20050921195118-7ad00-9070166cbaa26e3f27f7b92382346a70f5c479a1.gz --- inc/indexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/indexer.php') 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{ -- cgit v1.2.3