Make sure options is an array before trying to unset a sub-key

This commit is contained in:
Nathan Gray 2011-03-21 17:13:25 +00:00
parent de241b18f8
commit bba2a4c2bb

View File

@ -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']);
if(is_array($export_data['definitions'][$definition->name]['plugin_options'])) {
unset($export_data['definitions'][$definition->name]['plugin_options']['user_timezone_read']);
}
unset($definition);
}