summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-07-27 01:27:09 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-07-27 01:27:09 +0000
commit88ccaf02c404878c21288f9d00f594b62962b610 (patch)
tree03091cb7896294fb2ab47e3b2e54b27c73b575b2
parentf2f32820f7f74b69faeece1b48d8628066b1b8ff (diff)
downloadbrdo-88ccaf02c404878c21288f9d00f594b62962b610.tar.gz
brdo-88ccaf02c404878c21288f9d00f594b62962b610.tar.bz2
- #27531: Leftover string_length().
-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 9670483e4..3f6a357d9 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 (string_length($word) < variable_get('remove_short', 3)) {
+ if (drupal_substr($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 9670483e4..3f6a357d9 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 (string_length($word) < variable_get('remove_short', 3)) {
+ if (drupal_substr($word) < variable_get('remove_short', 3)) {
if ($word != '') {
$refused[] = str_replace('�', '*', $word);
}