Commit 628c91d9 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #720876 by pillarsdotnet: user_register_validate() should invoke...

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
parent 9e2c18d8
......@@ -2517,7 +2517,8 @@ function user_register() {
}
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');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment