/**
* Creates one new xmldb_index
*/
- function __construct($name, $type=null, $fields=null) {
+ function __construct($name, $type=null, $fields=array()) {
$this->unique = false;
$this->fields = array();
parent::__construct($name);
/**
* Creates one new xmldb_key
*/
- function __construct($name, $type=null, $fields=null, $reftable=null, $reffields=null) {
+ function __construct($name, $type=null, $fields=array(), $reftable=null, $reffields=null) {
$this->type = NULL;
$this->fields = array();
$this->reftable = NULL;