summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 3f6a357d9..177ac74f1 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 3f6a357d9..177ac74f1 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);
}