From 470617ba0a443476ac659cf8c866114c4d8e1ebe Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 17 Jul 2007 18:55:51 +0000 Subject: [PATCH] And index fields are lowercased too. Part of MDL-10413 Merged from MOODLE_18_STABLE --- lib/xmldb/classes/XMLDBIndex.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/xmldb/classes/XMLDBIndex.class.php b/lib/xmldb/classes/XMLDBIndex.class.php index 8ae4d692f8..002921fa00 100644 --- a/lib/xmldb/classes/XMLDBIndex.class.php +++ b/lib/xmldb/classes/XMLDBIndex.class.php @@ -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; -- 2.39.5