Initialize array elements properly

pull/836/head
Thomas Müller 10 years ago committed by Lukas Reschke
parent aa10231027
commit 1631ef5acc
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
  1. 2
      lib/private/App/InfoParser.php

@ -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…
Cancel
Save