mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Initialize array elements properly
This commit is contained in:
parent
aa10231027
commit
1631ef5acc
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue