From 01516fd39a0af006409b76d396c898e7cf8f73da Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 17 Jul 2007 18:57:31 +0000 Subject: [PATCH] And key fields are lowercased too. End of MDL-10413 Merged from MOODLE_18_STABLE --- lib/xmldb/classes/XMLDBKey.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/xmldb/classes/XMLDBKey.class.php b/lib/xmldb/classes/XMLDBKey.class.php index 9d6ec5636e..f814750816 100644 --- a/lib/xmldb/classes/XMLDBKey.class.php +++ b/lib/xmldb/classes/XMLDBKey.class.php @@ -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; -- 2.39.5