From: jerome Date: Thu, 14 Aug 2008 09:55:56 +0000 (+0000) Subject: MDL-15175: ensures cross-db: add a lowercase conversion for the username, merged... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e9366bf849572760166e891fa59be7f7d264b0f5;p=moodle.git MDL-15175: ensures cross-db: add a lowercase conversion for the username, merged from 19 --- diff --git a/auth/db/auth.php b/auth/db/auth.php index bf13ac3218..c0f57aff6f 100644 --- a/auth/db/auth.php +++ b/auth/db/auth.php @@ -420,7 +420,8 @@ 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); + $rec = (object)array_change_key_case((array)$rec , CASE_LOWER); + array_push($result, $rec->username); } }