Initialize array elements properly

This commit is contained in:
Thomas Müller 2016-07-04 13:47:03 +02:00 committed by Lukas Reschke
parent aa10231027
commit 1631ef5acc
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 1 additions and 1 deletions

View File

@ -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