diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/search.module | 4 | ||||
-rw-r--r-- | modules/search/search.module | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/modules/search.module b/modules/search.module index bef7499e8..5e519a4e0 100644 --- a/modules/search.module +++ b/modules/search.module @@ -494,7 +494,9 @@ function do_search($keys, $type, $join = '', $where = '1') { } } // Tell the user which words were excluded - drupal_set_message(t('The following word(s) were not included because they were too short: %words', array('%words' => '<em>'. implode(', ', $refused) .'</em>'))); + if (count($refused)) { + drupal_set_message(t('The following word(s) were not included because they were too short: %words', array('%words' => '<em>'. implode(', ', $refused) .'</em>'))); + } if (count($words) == 0) { return array(); diff --git a/modules/search/search.module b/modules/search/search.module index bef7499e8..5e519a4e0 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -494,7 +494,9 @@ function do_search($keys, $type, $join = '', $where = '1') { } } // Tell the user which words were excluded - drupal_set_message(t('The following word(s) were not included because they were too short: %words', array('%words' => '<em>'. implode(', ', $refused) .'</em>'))); + if (count($refused)) { + drupal_set_message(t('The following word(s) were not included because they were too short: %words', array('%words' => '<em>'. implode(', ', $refused) .'</em>'))); + } if (count($words) == 0) { return array(); |