diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-27 23:31:47 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-27 23:31:47 +0000 |
commit | 5f5f0b27aceedd0212a7375c4b7a97a6d0713a06 (patch) | |
tree | 69ac813b68d91c14737938adc36d5c00bb54fec0 /modules/search.module | |
parent | 4f196311c1590d34b0006768312ff8aeaa008664 (diff) | |
download | brdo-5f5f0b27aceedd0212a7375c4b7a97a6d0713a06.tar.gz brdo-5f5f0b27aceedd0212a7375c4b7a97a6d0713a06.tar.bz2 |
- Oops: don't show refused words message if there are none.
Diffstat (limited to 'modules/search.module')
-rw-r--r-- | modules/search.module | 4 |
1 files changed, 3 insertions, 1 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(); |