summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-09-12 16:58:13 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-09-12 16:58:13 +0200
commitd18f28de49595ac8dc94d92a2b2f4c9c5f6972e3 (patch)
tree1dcd4d51c316b70c3030a891c4ab2e8aa7ce3808
parent63773904ba897df090aab60fbf1598ae47775fe8 (diff)
downloadrpg-d18f28de49595ac8dc94d92a2b2f4c9c5f6972e3.tar.gz
rpg-d18f28de49595ac8dc94d92a2b2f4c9c5f6972e3.tar.bz2
fixed stupid bug in indexer
There was a stupid bug in the indexer which prevented the adding of new words (only non ASCII words were added) darcs-hash:20050912145813-7ad00-4351dbb1ab984d97322953c0ba4c9962ad887697.gz
-rw-r--r--inc/indexer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index 747463d0f..2bc707269 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -49,7 +49,7 @@ function idx_getPageWords($page){
$words[$w] = $c + (isset($words[$w]) ? $words[$w] : 0);
}
} else {
- if (!is_numeric($w) && strlen($w) < 3) continue;
+ if (!is_numeric($word) && strlen($word) < 3) continue;
$word = strtolower($word);
$words[$word] = $count + (isset($words[$word]) ? $words[$word] : 0);
}