From 1ed6ae073d643753685cb01b3369243dd4c5e348 Mon Sep 17 00:00:00 2001 From: jerome Date: Wed, 13 Aug 2008 06:41:46 +0000 Subject: [PATCH] MDL-15175: fix sync with external Oracle database merged from 1.9 --- auth/db/auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth/db/auth.php b/auth/db/auth.php index ac42e62919..bf13ac3218 100644 --- a/auth/db/auth.php +++ b/auth/db/auth.php @@ -175,6 +175,7 @@ class auth_plugin_db extends auth_plugin_base { if ($rs = $authdb->Execute($sql)) { if ( !$rs->EOF ) { $fields_obj = $rs->FetchObj(); + $fields_obj = (object)array_change_key_case((array)$fields_obj , CASE_LOWER); foreach ($selectfields as $localname=>$externalname) { $result[$localname] = $textlib->convert($fields_obj->{$localname}, $this->config->extencoding, 'utf-8'); } @@ -419,7 +420,7 @@ class auth_plugin_db extends auth_plugin_base { print_error('auth_dbcantconnect','auth'); } else if ( !$rs->EOF ) { while ($rec = $rs->FetchRow()) { - array_push($result, $rec->username); + array_push($result, $rec->USERNAME); } } -- 2.39.5