mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Fix one place where index->type was being used instead of index->unique
This commit is contained in:
parent
6859360cd4
commit
b0d8444349
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user