Skip to content

Commit c5fcbb4

Browse files
authored
Bug fix
1 parent 84862d4 commit c5fcbb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/XmlConstructor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function fromArray($in)
8787
if (isset($element['attributes']) && is_array($element['attributes'])) {
8888
$attributes = $element['attributes'];
8989
}
90+
$content = null;
9091
if (isset($element['content'])) {
9192
$content = $element['content'];
9293
} elseif (isset($element['elements']) && is_array($element['elements'])) {

0 commit comments

Comments
 (0)