diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-20 02:56:05 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-20 02:56:05 +0000 |
commit | cb07c9992be48479e8b53117c21407426f4dd510 (patch) | |
tree | 2f63b05994d9c33662b3ce9ebf698bfb67c348fb /modules/simpletest/tests/file_test.module | |
parent | 09ed948a2566624fa93b39a8e60c500959d1ee60 (diff) | |
download | brdo-cb07c9992be48479e8b53117c21407426f4dd510.tar.gz brdo-cb07c9992be48479e8b53117c21407426f4dd510.tar.bz2 |
#30520 follow-up by Dave Reid: Fix error message about upload when not uploading a file (with tests, so we don't break it again).
Diffstat (limited to 'modules/simpletest/tests/file_test.module')
-rw-r--r-- | modules/simpletest/tests/file_test.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/tests/file_test.module b/modules/simpletest/tests/file_test.module index 899bbdc43..9d44b40ab 100644 --- a/modules/simpletest/tests/file_test.module +++ b/modules/simpletest/tests/file_test.module @@ -61,7 +61,7 @@ function _file_test_form_submit(&$form, &$form_state) { drupal_set_message(t('File @filepath was uploaded.', array('@filepath' => $file->filepath))); drupal_set_message(t('You WIN!')); } - else { + elseif ($file === FALSE) { drupal_set_message(t('Epic upload FAIL!'), 'error'); } } |