diff --git a/auth/email/auth.php b/auth/email/auth.php index fa5e510a802..75e4bf476f1 100644 --- a/auth/email/auth.php +++ b/auth/email/auth.php @@ -86,7 +86,7 @@ class auth_plugin_email extends auth_plugin_base { /// Save any custom profile field information profile_save_data($user); - $user = get_record('user', 'id', $user->id); + $user = $DB->get_record('user', array('id'=>$user->id)); events_trigger('user_created', $user); if (! send_confirmation_email($user)) {