Silence warning if there are no conditions

This commit is contained in:
nathangray 2018-09-05 13:26:27 -06:00
parent 87ff796a09
commit 915445fc44

View File

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