]> git.mjollnir.org Git - moodle.git/commitdiff
Fix one place where index->type was being used instead of index->unique
authorstronk7 <stronk7>
Tue, 26 Sep 2006 22:46:05 +0000 (22:46 +0000)
committerstronk7 <stronk7>
Tue, 26 Sep 2006 22:46:05 +0000 (22:46 +0000)
lib/xmldb/classes/XMLDBIndex.class.php

index c23e5f25b175997a19c1cb3f891803e003183a92..e8315176fef57cf3534a2a369a5a83e00687e029 100644 (file)
@@ -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;
     }