Skip to content
Snippets Groups Projects
Commit d18f28de authored by Andreas Gohr's avatar Andreas Gohr
Browse files

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
parent 63773904
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment