MDL-15175: fix sync with external Oracle database merged from 1.9

This commit is contained in:
jerome
2008-08-13 06:35:22 +00:00
parent 847bb2fd19
commit 15a9e839f2
+2 -1
View File
@@ -173,6 +173,7 @@ class auth_plugin_db extends auth_plugin_base {
if ($rs = $authdb->Execute($sql)) {
if ( $rs->RecordCount() == 1 ) {
$fields_obj = rs_fetch_record($rs);
$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');
}
@@ -429,7 +430,7 @@ class auth_plugin_db extends auth_plugin_base {
print_error('auth_dbcantconnect','auth');
} else if ( $rs->RecordCount() ) {
while ($rec = rs_fetch_next_record($rs)) {
array_push($result, $rec->username);
array_push($result, $rec->USERNAME);
}
}