From: stronk7 Date: Tue, 26 Sep 2006 22:46:05 +0000 (+0000) Subject: Fix one place where index->type was being used instead of index->unique X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b0d84443496d895ec08dd968cc2c9b0799a6592c;p=moodle.git Fix one place where index->type was being used instead of index->unique --- diff --git a/lib/xmldb/classes/XMLDBIndex.class.php b/lib/xmldb/classes/XMLDBIndex.class.php index c23e5f25b1..e8315176fe 100644 --- a/lib/xmldb/classes/XMLDBIndex.class.php +++ b/lib/xmldb/classes/XMLDBIndex.class.php @@ -47,7 +47,7 @@ class XMLDBIndex extends XMLDBObject { * @param array fields an array of fieldnames to build the index over */ function setAttributes($type, $fields) { - $this->type = !empty($type) ? true : false; + $this->unique = !empty($type) ? true : false; $this->fields = $fields; }