From 6c6b8ad2f03f6eb473241579c75f74cd0e2345c5 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 2 Jul 2011 15:16:02 +0200 Subject: [PATCH] MDL-27375 add missing lowercasing of external column names Credit goes to Gail Preuninger. --- enrol/database/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/enrol/database/lib.php b/enrol/database/lib.php index 818b05ecc26..987e0e73f96 100644 --- a/enrol/database/lib.php +++ b/enrol/database/lib.php @@ -111,6 +111,7 @@ class enrol_database_plugin extends enrol_plugin { 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])) {