From 0dfd79be1c99323a13384d955f8a4d8d6a155f4f Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Mon, 29 Mar 2021 14:14:22 +0200 Subject: [PATCH] fix: [xml] Object can be without attributes --- app/Lib/Tools/XMLConverterTool.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Lib/Tools/XMLConverterTool.php b/app/Lib/Tools/XMLConverterTool.php index ef7653db5..7ba4e924f 100644 --- a/app/Lib/Tools/XMLConverterTool.php +++ b/app/Lib/Tools/XMLConverterTool.php @@ -147,7 +147,9 @@ class XMLConverterTool } if (!empty($event['Event']['Object'])) { foreach ($event['Event']['Object'] as $k => $v) { - $event['Event']['Object'][$k]['Attribute'] = $this->__rearrangeAttributes($event['Event']['Object'][$k]['Attribute']); + if (!empty($event['Event']['Object'][$k]['Attribute'])) { + $event['Event']['Object'][$k]['Attribute'] = $this->__rearrangeAttributes($event['Event']['Object'][$k]['Attribute']); + } } } if (isset($event['Event']['ShadowAttribute'])) {