Commit c63a13c9 authored by Donal McMullan's avatar Donal McMullan
Browse files

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

parent 4689594d
......@@ -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) {
Supports Markdown
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