Skip to content

Commit

Permalink
And key fields are lowercased too. End of MDL-10413
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jul 17, 2007
1 parent 6794ccb commit d7fd82a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/xmldb/classes/XMLDBKey.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,9 @@ function setFromADOKey($adokey) {
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;
Expand Down

0 comments on commit d7fd82a

Please sign in to comment.