Issue #720876 by pillarsdotnet: user_register_validate() should invoke user_module_in...
authorGábor Hojtsy
Wed, 1 Feb 2012 13:17:38 +0000 (14:17 +0100)
committerGábor Hojtsy
Wed, 1 Feb 2012 13:17:38 +0000 (14:17 +0100)
modules/user/user.module

index 625a00c..f7880fa 100644 (file)
@@ -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');
 }
 
 /**