diff --git a/src/XmlConstructor.php b/src/XmlConstructor.php index 709aa32..b544ede 100644 --- a/src/XmlConstructor.php +++ b/src/XmlConstructor.php @@ -87,6 +87,7 @@ public function fromArray($in) if (isset($element['attributes']) && is_array($element['attributes'])) { $attributes = $element['attributes']; } + $content = null; if (isset($element['content'])) { $content = $element['content']; } elseif (isset($element['elements']) && is_array($element['elements'])) {