Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Initialize array elements properly
  • Loading branch information
DeepDiver1975 authored and LukasReschke committed Sep 7, 2016
commit 1631ef5acc18d45d9f6d4b5a91208594df38e2c8
2 changes: 1 addition & 1 deletion lib/private/App/InfoParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function xmlToArray($xml) {
$totalElement = count($xml->{$element});

if (!isset($array[$element])) {
$array[$element] = "";
$array[$element] = $totalElement > 1 ? [] : "";
}
/** @var \SimpleXMLElement $node */
// Has attributes
Expand Down