And key fields are lowercased too. End of MDL-10413

Merged from MOODLE_18_STABLE
This commit is contained in:
stronk7
2007-07-17 18:57:31 +00:00
parent 470617ba0a
commit 01516fd39a
+3 -2
View 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;