From 7ce92b9124072b7bb730540e5b90fb8b9a78e6d5 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 10 Jun 2021 09:45:36 -0600 Subject: [PATCH] Import/Export: Avoid "Undefined variable: filter" error Correct files this time (cherry picked from commit a7d52168b7e2434cc3d8cf171f26a0bd918bb2d7) --- importexport/inc/class.importexport_definition.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_definition.inc.php b/importexport/inc/class.importexport_definition.inc.php index 1ede7bc30b..8626819bf8 100644 --- a/importexport/inc/class.importexport_definition.inc.php +++ b/importexport/inc/class.importexport_definition.inc.php @@ -93,8 +93,11 @@ class importexport_definition implements importexport_iface_egw_record { { $options_data = importexport_arrayxml::xml2array( $this->definition['plugin_options'] ); $this->definition['plugin_options'] = (array)$options_data['root']; - if($this->definition['filter']) $filter = importexport_arrayxml::xml2array( $this->definition['filter'] ); - $this->definition['filter'] = $filter['root']; + if($this->definition['filter']) + { + $filter = importexport_arrayxml::xml2array( $this->definition['filter'] ); + $this->definition['filter'] = $filter['root']; + } } catch (Throwable $e) {