From: skodak Date: Thu, 28 Aug 2008 07:26:24 +0000 (+0000) Subject: MDL-16245 fixed forgotten get_record() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=14482ff99e847b88a5ae1c4d5e4cde5a7c841fed;p=moodle.git MDL-16245 fixed forgotten get_record() --- diff --git a/auth/email/auth.php b/auth/email/auth.php index fa5e510a80..75e4bf476f 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)) {