MDL-27375 add missing lowercasing of external column names
Credit goes to Gail Preuninger.
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
bde4f81335
commit
78087ddfa5
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user