Fix one place where index->type was being used instead of index->unique

This commit is contained in:
stronk7 2006-09-26 22:46:05 +00:00
parent 6859360cd4
commit b0d8444349

View 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;
}