Initialize array elements properly
This commit is contained in:
parent
aa10231027
commit
1631ef5acc
|
@ -156,7 +156,7 @@ class InfoParser {
|
|||
$totalElement = count($xml->{$element});
|
||||
|
||||
if (!isset($array[$element])) {
|
||||
$array[$element] = "";
|
||||
$array[$element] = $totalElement > 1 ? [] : "";
|
||||
}
|
||||
/** @var \SimpleXMLElement $node */
|
||||
// Has attributes
|
||||
|
|
Loading…
Reference in New Issue