Merge pull request #7267 from JakubOnderka/fix-xml-empty-object

fix: [xml] Object can be without attributes
pull/7334/head
Jakub Onderka 2021-04-03 13:01:45 +02:00 committed by GitHub
commit a1fb8f839c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'])) {