From: skodak Date: Wed, 4 Apr 2007 09:19:31 +0000 (+0000) Subject: MDL-9191 fix for potential incorrect use of get_auth_plugin; merged from MOODLE_18_S... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f76cfc7a3a51fef1bb37d6156e5524468777ba26;p=moodle.git MDL-9191 fix for potential incorrect use of get_auth_plugin; merged from MOODLE_18_STABLE --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 6a21fb173f..9b8b0405c2 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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