]> git.mjollnir.org Git - moodle.git/commitdiff
Found another get_record() call when looking to MDL-16245. Fixed.
authorstronk7 <stronk7>
Thu, 28 Aug 2008 23:00:43 +0000 (23:00 +0000)
committerstronk7 <stronk7>
Thu, 28 Aug 2008 23:00:43 +0000 (23:00 +0000)
auth/ldap/auth.php

index d7eeea7e49a031b7f9109f870e66f43b8c816d74..2cddfe5a2b5eab5ace0bc6a2d5d491e6858ef73f 100644 (file)
@@ -404,9 +404,10 @@ class auth_plugin_ldap extends auth_plugin_base {
      * @param boolean $notify print notice with link and terminate
      */
     function user_signup($user, $notify=true) {
-        global $CFG;
+        global $CFG, $DB;
+
         require_once($CFG->dirroot.'/user/profile/lib.php');
-        
+
         if ($this->user_exists($user->username)) {
             print_error('auth_ldap_user_exists', 'auth');
         }
@@ -428,7 +429,7 @@ class auth_plugin_ldap extends auth_plugin_base {
         $this->update_user_record($user->username);
         update_internal_user_password($user, $plainslashedpassword);
 
-        $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)) {