mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Try to catch some errors
This commit is contained in:
parent
21fdd9abf2
commit
3a1c4fb7fb
@ -79,7 +79,8 @@ class importexport_arrayxml {
|
||||
$n = &$_xml;
|
||||
} else {
|
||||
$n = new DOMDocument;
|
||||
$n->loadXML($_xml);
|
||||
$loaded = $n->loadXML($_xml);
|
||||
if(!$loaded) return array();
|
||||
}
|
||||
$xml_array = array();
|
||||
|
||||
|
@ -78,10 +78,17 @@ class importexport_definition implements importexport_iface_egw_record {
|
||||
if ( !( importexport_definitions_bo::is_permitted($this->get_record_array()) || $this->is_admin)) {
|
||||
throw new Exception('Error: User "'.$this->user.'" is not permitted to get definition with identifier "'.$_identifier.'"!');
|
||||
}
|
||||
$options_data = importexport_arrayxml::xml2array( $this->definition['plugin_options'] );
|
||||
$this->definition['plugin_options'] = $options_data['root'];
|
||||
if($this->definition['filter']) $filter = importexport_arrayxml::xml2array( $this->definition['filter'] );
|
||||
$this->definition['filter'] = $filter['root'];
|
||||
try
|
||||
{
|
||||
$options_data = importexport_arrayxml::xml2array( $this->definition['plugin_options'] );
|
||||
$this->definition['plugin_options'] = $options_data['root'];
|
||||
if($this->definition['filter']) $filter = importexport_arrayxml::xml2array( $this->definition['filter'] );
|
||||
$this->definition['filter'] = $filter['root'];
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
error_log($e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user