From 14482ff99e847b88a5ae1c4d5e4cde5a7c841fed Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 28 Aug 2008 07:26:24 +0000 Subject: [PATCH] MDL-16245 fixed forgotten get_record() --- auth/email/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.5