summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-02-27 23:31:47 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-02-27 23:31:47 +0000
commit5f5f0b27aceedd0212a7375c4b7a97a6d0713a06 (patch)
tree69ac813b68d91c14737938adc36d5c00bb54fec0 /modules
parent4f196311c1590d34b0006768312ff8aeaa008664 (diff)
downloadbrdo-5f5f0b27aceedd0212a7375c4b7a97a6d0713a06.tar.gz
brdo-5f5f0b27aceedd0212a7375c4b7a97a6d0713a06.tar.bz2
- Oops: don't show refused words message if there are none.
Diffstat (limited to 'modules')
-rw-r--r--modules/search.module4
-rw-r--r--modules/search/search.module4
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();