summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/user/user.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 9d1c7ff33..5581bef85 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2151,6 +2151,8 @@ function user_register_submit($form, &$form_state) {
// Create new user account, administrator approval required.
_user_mail_notify('register_pending_approval', $account);
drupal_set_message(t('Thank you for applying for an account. Your account is currently pending approval by the site administrator.<br />In the meantime, your password and further instructions have been sent to your e-mail address.'));
+ $form_state['redirect'] = '';
+ return;
}
}