diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc
index 5203747..f6ad8ea 100644
--- a/core/modules/system/system.admin.inc
+++ b/core/modules/system/system.admin.inc
@@ -1373,8 +1373,7 @@ function system_modules_uninstall_confirm_form($storage) {
 function system_modules_uninstall_validate($form, &$form_state) {
   // Form submitted, but no modules selected.
   if (!count(array_filter($form_state['values']['uninstall']))) {
-    drupal_set_message(t('No modules selected.'), 'error');
-    drupal_goto('admin/modules/uninstall');
+    form_set_error('', t('No modules selected.'));
   }
 }
 
