]> git.mjollnir.org Git - moodle.git/commitdiff
And key fields are lowercased too. End of MDL-10413
authorstronk7 <stronk7>
Tue, 17 Jul 2007 18:57:31 +0000 (18:57 +0000)
committerstronk7 <stronk7>
Tue, 17 Jul 2007 18:57:31 +0000 (18:57 +0000)
Merged from MOODLE_18_STABLE

lib/xmldb/classes/XMLDBKey.class.php

index 9d6ec5636eca674f791fda2ce984a140a19cb595..f81475081601c92bcd517d28239d4b03f6583555 100644 (file)
@@ -380,8 +380,9 @@ class XMLDBKey extends XMLDBObject {
             default:
                 $this->type = XMLDB_KEY_UNIQUE;
         }
-    /// Set the fields
-        $this->fields = $adokey['columns'];
+    /// Set the fields, converting all them to lowercase
+        $fields = array_flip(array_change_key_case(array_flip($adokey['columns'])));
+        $this->fields = $fields;
     /// Some more fields
         $this->loaded = true;
         $this->changed = true;