From e739b19a7e6b889ac919b60d0cefc00d83abac19 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Mon, 7 Mar 2005 02:01:25 +0000 Subject: [PATCH] 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 --- auth/db/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/db/lib.php b/auth/db/lib.php index ad51337ae6e..c225efcbb9f 100644 --- a/auth/db/lib.php +++ b/auth/db/lib.php @@ -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]; } } }