summaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-07-04 13:47:03 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-07 22:09:08 +0200
commit1631ef5acc18d45d9f6d4b5a91208594df38e2c8 (patch)
treeaaea6db4800359cb2ff3bc6276e1b7eba526f9d5 /lib/private/App
parentaa10231027e9b15e4c780213ed08a1a12a06970c (diff)
downloadnextcloud-server-1631ef5acc18d45d9f6d4b5a91208594df38e2c8.tar.gz
nextcloud-server-1631ef5acc18d45d9f6d4b5a91208594df38e2c8.zip
Initialize array elements properly
Diffstat (limited to 'lib/private/App')
-rw-r--r--lib/private/App/InfoParser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/App/InfoParser.php b/lib/private/App/InfoParser.php
index 734f5c2c6af..e975ad6f096 100644
--- a/lib/private/App/InfoParser.php
+++ b/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