Avoid Illegal string offset 'no_notification' warning if definition has no options defined

This commit is contained in:
nathangray 2016-07-21 14:38:31 -06:00
parent 3ab01052f4
commit e77a81e10a

View File

@ -83,7 +83,7 @@ class importexport_definition implements importexport_iface_egw_record {
try try
{ {
$options_data = importexport_arrayxml::xml2array( $this->definition['plugin_options'] ); $options_data = importexport_arrayxml::xml2array( $this->definition['plugin_options'] );
$this->definition['plugin_options'] = $options_data['root']; $this->definition['plugin_options'] = (array)$options_data['root'];
if($this->definition['filter']) $filter = importexport_arrayxml::xml2array( $this->definition['filter'] ); if($this->definition['filter']) $filter = importexport_arrayxml::xml2array( $this->definition['filter'] );
$this->definition['filter'] = $filter['root']; $this->definition['filter'] = $filter['root'];
} }