Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-27375 add missing lowercasing of external column names

Credit goes to Gail Preuninger.
  • Loading branch information...
commit 78087ddfa551e48f04e34aecee440a4a495c1e1c 1 parent bde4f81
@skodak skodak authored stronk7 committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  enrol/database/lib.php
View
1  enrol/database/lib.php
@@ -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])) {
Please sign in to comment.
Something went wrong with that request. Please try again.