From d18f28de49595ac8dc94d92a2b2f4c9c5f6972e3 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 12 Sep 2005 16:58:13 +0200 Subject: 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 --- inc/indexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') 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); } -- cgit v1.2.3