summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-02-16 17:47:53 +0000
committerDries Buytaert <dries@buytaert.net>2003-02-16 17:47:53 +0000
commit465a5987702668321d2a1bde11ac6fa59e62f7d6 (patch)
tree4e1a6724aaecc731910a43677703fb213ace951a
parentdd329e1d95dcc0e02841482b660091945f433d13 (diff)
downloadbrdo-465a5987702668321d2a1bde11ac6fa59e62f7d6.tar.gz
brdo-465a5987702668321d2a1bde11ac6fa59e62f7d6.tar.bz2
- Fixed off-by-one bug in the search module. Patch by Brad. (Still looking
into the blog module patch.)
-rw-r--r--modules/search.module2
-rw-r--r--modules/search/search.module2
2 files changed, 2 insertions, 2 deletions
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]++;
}