Commit dac96353 authored by Donal McMullan's avatar Donal McMullan

A fix for handle_event('createuser', $user) on SSO-in.

parent d1d69cf6
......@@ -188,7 +188,15 @@ class AuthXmlrpc extends Auth {
set_profile_field($user->id, 'lastname', $user->lastname);
set_profile_field($user->id, 'email', $user->email);
handle_event('createuser', get_object_vars($user));
/*
* We need to convert the object to a stdclass with its own
* custom method because it uses overloaders in its implementation
* and its properties wouldn't be visible to a simple cast operation
* like (array)$user
*/
$userobj = $user->to_stdclass();
$userarray = (array)$userobj;
handle_event('createuser', $userarray);
} elseif ($update) {
......
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