From 14559e1849205de618c355eab57ffe51a8678579 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 24 Apr 2013 02:09:34 +0200 Subject: [PATCH] MDL-38972 xmldb: amend comments. --- lib/xmldb/xmldb_table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/xmldb/xmldb_table.php b/lib/xmldb/xmldb_table.php index 9655c03887187..e005e4b11f182 100644 --- a/lib/xmldb/xmldb_table.php +++ b/lib/xmldb/xmldb_table.php @@ -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) { @@ -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) {