From 5f5f0b27aceedd0212a7375c4b7a97a6d0713a06 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 27 Feb 2005 23:31:47 +0000 Subject: - Oops: don't show refused words message if there are none. --- modules/search.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/search.module') 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' => ''. implode(', ', $refused) .''))); + if (count($refused)) { + drupal_set_message(t('The following word(s) were not included because they were too short: %words', array('%words' => ''. implode(', ', $refused) .''))); + } if (count($words) == 0) { return array(); -- cgit v1.2.3