aboutsummaryrefslogtreecommitdiff
path: root/mod/search/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/search/start.php')
-rw-r--r--mod/search/start.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/search/start.php b/mod/search/start.php
index 42366318a..92d5c65b6 100644
--- a/mod/search/start.php
+++ b/mod/search/start.php
@@ -298,7 +298,7 @@ function search_remove_ignored_words($query, $format = 'array') {
$min_chars = $CONFIG->search_info['min_chars'];
// if > ft_min_word we're not running in literal mode.
- if ($query >= $min_chars) {
+ if (elgg_strlen($query) >= $min_chars) {
// clean out any words that are ignored by mysql
foreach ($words as $i => $word) {
if (elgg_strlen($word) < $min_chars) {