Permalink
Browse files

MDL-27375 add missing lowercasing of external column names

Credit goes to Gail Preuninger.
  • Loading branch information...
1 parent 413b73f commit 2c9b8852f0e33c0ee7f2a0bdf7d4068041aff3b0 @skodak skodak committed with stronk7 Jul 2, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 enrol/database/lib.php
View
@@ -111,6 +111,7 @@ public function sync_user_enrolments($user) {
if ($rs = $extdb->Execute($sql)) {
if (!$rs->EOF) {
while ($fields = $rs->FetchRow()) {
+ $fields = array_change_key_case($fields, CASE_LOWER);
$fields = $this->db_decode($fields);
if (empty($fields[$coursefield])) {

0 comments on commit 2c9b885

Please sign in to comment.