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

lib/xmldb/classes/XMLDBIndex.class.php

index 8ae4d692f8da346860931b8a00c1b9da1d4f8461..002921fa003084e27919b97a0964cfe44753c1ed 100644 (file)
@@ -210,8 +210,9 @@ class XMLDBIndex extends XMLDBObject {
 
     /// Set the unique field
         $this->unique = false;
-    /// Set the fields
-        $this->fields = $adoindex['columns'];
+    /// Set the fields, converting all them to lowercase
+        $fields = array_flip(array_change_key_case(array_flip($adoindex['columns'])));
+        $this->fields = $fields;
     /// Some more fields
         $this->loaded = true;
         $this->changed = true;