summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/user/user.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 625a00c..f7880fa 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2517,7 +2517,8 @@ if (Drupal.jsEnabled) {
}
function user_register_validate($form, &$form_state) {
- user_module_invoke('validate', $form_state['values'], $form_state['values'], 'account');
+ $account = (object) $form_state['values'];
+ user_module_invoke('validate', $form_state['values'], $account, 'account');
}
/**