]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9191 fix for potential incorrect use of get_auth_plugin; merged from MOODLE_18_S...
authorskodak <skodak>
Wed, 4 Apr 2007 09:19:31 +0000 (09:19 +0000)
committerskodak <skodak>
Wed, 4 Apr 2007 09:19:31 +0000 (09:19 +0000)
lib/moodlelib.php

index 6a21fb173f2f9b747ea1effcdb3bbc6380e5cf5f..9b8b0405c260c492acdc49029952b75249882099 100644 (file)
@@ -2473,7 +2473,7 @@ function get_user_fieldnames() {
  * @return object A {@link $USER} object
  * @todo Outline auth types and provide code example
  */
-function create_user_record($username, $password, $auth='') {
+function create_user_record($username, $password, $auth='manual') {
     global $CFG;
 
     //just in case check text case
@@ -2494,7 +2494,7 @@ function create_user_record($username, $password, $auth='') {
         }
     }
 
-    $newuser->auth = (empty($auth)) ? 'manual' : $auth;
+    $newuser->auth = $auth;
     $newuser->username = $username;
     
     // fix for MDL-8480