Merged from MOODLE_14_STABLE - Fixed bug 2319 DB auth not fetching user data fields correctly -- credits go to andres.marquez@accenture.com and doug nutsch

This commit is contained in:
martinlanghoff 2005-03-07 02:01:25 +00:00
parent bbab80d1fc
commit e739b19a7e

View File

@ -68,7 +68,7 @@ function auth_get_userinfo($username){
if ($rs = $authdb->Execute("SELECT ".$config["auth_user_$field"]." FROM $CFG->auth_dbtable
WHERE $CFG->auth_dbfielduser = '$username'")) {
if ( $rs->RecordCount() == 1 ) {
$result["$field"] = $rs->fields[$config["auth_user_$field"]];
$result["$field"] = $rs->fields[0];
}
}
}