aboutsummaryrefslogtreecommitdiff
path: root/mod/search/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-15 04:43:49 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-15 04:43:49 +0000
commit1890c9534ff1255af9f2f73d3cf319b81c245eb2 (patch)
tree106a5ac955d1f31b74ada5472bdf23865cd4de03 /mod/search/start.php
parentf38e409912a5c3add6ce3be5a87e38a3239ff871 (diff)
downloadelgg-1890c9534ff1255af9f2f73d3cf319b81c245eb2.tar.gz
elgg-1890c9534ff1255af9f2f73d3cf319b81c245eb2.tar.bz2
Added a missing elgg_strlen() in search_remove_ignored_words()
git-svn-id: http://code.elgg.org/elgg/trunk@3686 36083f99-b078-4883-b0ff-0f9b5a30f544
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) {