summaryrefslogtreecommitdiff
path: root/inc/indexer.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-09-21 21:51:18 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-09-21 21:51:18 +0200
commit3cbaa9a4ac8aae40957eda92e4cf6885524c183a (patch)
treedf7e3dc1e2c8f7e3301d88a3c54204ccec51f0e3 /inc/indexer.php
parent993efcf6a9ea92bcea4e4964ea0225aa164a73d6 (diff)
downloadrpg-3cbaa9a4ac8aae40957eda92e4cf6885524c183a.tar.gz
rpg-3cbaa9a4ac8aae40957eda92e4cf6885524c183a.tar.bz2
backlinkfix for pages with special characters #548
darcs-hash:20050921195118-7ad00-9070166cbaa26e3f27f7b92382346a70f5c479a1.gz
Diffstat (limited to 'inc/indexer.php')
-rw-r--r--inc/indexer.php2
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{