From 465a5987702668321d2a1bde11ac6fa59e62f7d6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 16 Feb 2003 17:47:53 +0000 Subject: - Fixed off-by-one bug in the search module. Patch by Brad. (Still looking into the blog module patch.) --- modules/search.module | 2 +- modules/search/search.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/search.module b/modules/search.module index bb2bff481..ab56bbcec 100644 --- a/modules/search.module +++ b/modules/search.module @@ -246,7 +246,7 @@ function update_index($search_array) { ** the number of times it appears in a page. */ foreach ($eachword as $word) { - if (strlen($word) > $minimum_word_size) { + if (strlen($word) >= $minimum_word_size) { if ($newwords[$word]) { $newwords[$word]++; } diff --git a/modules/search/search.module b/modules/search/search.module index bb2bff481..ab56bbcec 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -246,7 +246,7 @@ function update_index($search_array) { ** the number of times it appears in a page. */ foreach ($eachword as $word) { - if (strlen($word) > $minimum_word_size) { + if (strlen($word) >= $minimum_word_size) { if ($newwords[$word]) { $newwords[$word]++; } -- cgit v1.2.3