From: stronk7 Date: Tue, 17 Jul 2007 18:57:31 +0000 (+0000) Subject: And key fields are lowercased too. End of MDL-10413 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=01516fd39a0af006409b76d396c898e7cf8f73da;p=moodle.git And key fields are lowercased too. End of MDL-10413 Merged from MOODLE_18_STABLE --- 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;