summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2012-02-01 13:17:38 (GMT)
committer Gábor Hojtsy2012-02-01 13:17:38 (GMT)
commit628c91d96f1fb071a1a58024d40dae616209d8eb (patch)
treec9d1d8d864c6876f1226b02324ea128bb2748ef5
parent9e2c18d84e10bd737e91e3447e4da50265806ba1 (diff)
Issue #720876 by pillarsdotnet: user_register_validate() should invoke user_module_invoke() with an account object rather than an array; improved PHP 5.3 compatibility
-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');
}
/**