Skip to content

Commit

Permalink
MDL-38972 xmldb: amend comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Apr 24, 2013
1 parent 01159be commit 14559e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/xmldb/xmldb_table.php
Expand Up @@ -125,7 +125,7 @@ public function addKey($key, $after=null) {
throw new coding_exception('Duplicate key '.$key->getName().' specified in table '.$this->getName());
}

// Make sure there are no duplicate keys because the indexes would collide.
// Make sure there are no indexes with the key column specs because they would collide.
$newfields = $key->getFields();
$allindexes = $this->getIndexes();
foreach ($allindexes as $index) {
Expand Down Expand Up @@ -187,7 +187,7 @@ public function addIndex($index, $after=null) {
throw new coding_exception('Duplicate index '.$index->getName().' specified in table '.$this->getName());
}

// Make sure there are no duplicate keys because the indexes would collide.
// Make sure there are no keys with the index column specs because they would collide.
$newfields = $index->getFields();
$allkeys = $this->getKeys();
foreach ($allkeys as $key) {
Expand Down

0 comments on commit 14559e1

Please sign in to comment.