From 931b508559e6c5ef8ee0e6918b357da2709534a2 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 29 Jan 2007 23:52:33 +0000 Subject: [PATCH] Applying new rs_xxx() functions everywhere. MDL-8134 --- auth/db/auth.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auth/db/auth.php b/auth/db/auth.php index c3c3ed96a7fe1..d01ecc97e0feb 100644 --- a/auth/db/auth.php +++ b/auth/db/auth.php @@ -138,13 +138,15 @@ function get_userinfo($username) { " WHERE {$this->config->fielduser} = '$username'"; if ($rs = $authdb->Execute($sql)) { if ( $rs->RecordCount() == 1 ) { + $fields_obj = rs_fetch_record($rs); foreach ($selectfields as $localname=>$externalname) { if (empty($CFG->unicodedb)) { - $rs->fields[$localname] = utf8_decode($rs->fields[$localname]); + $fields_obj->{$localname} = utf8_decode($fields_obj->{$localname}); } - $result[$localname] = addslashes(stripslashes($rs->fields[$localname])); + $result[$localname] = addslashes(stripslashes($fields_obj->{$localname})); } } + rs_close($rs); } } $authdb->Close();