From 31ebc329822f1695d91db53500c7dfe649d08b87 Mon Sep 17 00:00:00 2001
From: Steven Wittens <steven@10.no-reply.drupal.org>
Date: Fri, 29 Jul 2005 06:43:32 +0000
Subject: [PATCH] - #27626: Correct function name

---
 modules/search.module        | 2 +-
 modules/search/search.module | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/search.module b/modules/search.module
index 3f6a357d9018..177ac74f17d1 100644
--- a/modules/search.module
+++ b/modules/search.module
@@ -476,7 +476,7 @@ function do_search($keywords, $type, $join = '', $where = '1', $variation = true
   $refused = array();
   // Build WHERE clause
   foreach ($keys as $word) {
-    if (drupal_substr($word) < variable_get('remove_short', 3)) {
+    if (drupal_strlen($word) < variable_get('remove_short', 3)) {
       if ($word != '') {
         $refused[] = str_replace('�', '*', $word);
       }
diff --git a/modules/search/search.module b/modules/search/search.module
index 3f6a357d9018..177ac74f17d1 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -476,7 +476,7 @@ function do_search($keywords, $type, $join = '', $where = '1', $variation = true
   $refused = array();
   // Build WHERE clause
   foreach ($keys as $word) {
-    if (drupal_substr($word) < variable_get('remove_short', 3)) {
+    if (drupal_strlen($word) < variable_get('remove_short', 3)) {
       if ($word != '') {
         $refused[] = str_replace('�', '*', $word);
       }
-- 
GitLab