Avoid warning if conditions do not exist

This commit is contained in:
nathangray 2019-02-07 10:56:10 -07:00
parent ec04121692
commit b7c0fce767

View File

@ -181,7 +181,7 @@ class importexport_definition implements importexport_iface_egw_record {
private function set_options(array $_plugin_options) {
// Check conditions
foreach ( (Array)$_plugin_options['conditions'] as $key => $condition ) {
if(!$condition['string'])
if(!$condition['string'] && array_key_exists($key, $_plugin_options['conditions']))
{
unset($_plugin_options['conditions'][$key]);
}