fix: [xml] Object can be without attributes

pull/7267/head
Jakub Onderka 2021-03-29 14:14:22 +02:00
parent c6bf55cc73
commit 0dfd79be1c
1 changed files with 3 additions and 1 deletions

View File

@ -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'])) {