mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 06:49:16 +01:00
Make sure options is an array before trying to unset a sub-key
This commit is contained in:
parent
de241b18f8
commit
bba2a4c2bb
@ -123,7 +123,9 @@ class importexport_definitions_bo {
|
||||
unset($export_data['definitions'][$definition->name]['definition_id']);
|
||||
unset($export_data['definitions'][$definition->name]['description']);
|
||||
unset($export_data['definitions'][$definition->name]['user_timezone_read']);
|
||||
unset($export_data['definitions'][$definition->name]['plugin_options']['user_timezone_read']);
|
||||
if(is_array($export_data['definitions'][$definition->name]['plugin_options'])) {
|
||||
unset($export_data['definitions'][$definition->name]['plugin_options']['user_timezone_read']);
|
||||
}
|
||||
unset($definition);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user