MDL-27375 add missing lowercasing of external column names

Credit goes to Gail Preuninger.
This commit is contained in:
Petr Skoda
2011-07-07 01:40:35 +02:00
committed by Eloy Lafuente (stronk7)
parent bde4f81335
commit 78087ddfa5
+1
View File
@@ -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])) {