From 915445fc444e7e106b52c3623add5037faefd29e Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 5 Sep 2018 13:26:27 -0600 Subject: [PATCH] Silence warning if there are no conditions --- importexport/inc/class.importexport_definition.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_definition.inc.php b/importexport/inc/class.importexport_definition.inc.php index 5f61efbfe5..d579beebd0 100644 --- a/importexport/inc/class.importexport_definition.inc.php +++ b/importexport/inc/class.importexport_definition.inc.php @@ -180,7 +180,7 @@ class importexport_definition implements importexport_iface_egw_record { */ private function set_options(array $_plugin_options) { // Check conditions - foreach ( $_plugin_options['conditions'] as $key => $condition ) { + foreach ( (Array)$_plugin_options['conditions'] as $key => $condition ) { if(!$condition['string']) { unset($_plugin_options['conditions'][$key]);