diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-12-16 09:20:00 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-12-16 09:20:00 +0100 |
commit | 6d524694b2b348da5c636308a40a57faf5031433 (patch) | |
tree | c97b75241d5435b3f69b73210bd1e002679a6b1f /owncloud-463e2ea-php71-backport.patch | |
parent | 65c880c95562b7ec1c8096cef0b25234b4954bbc (diff) |
owncloud: sync latest Fedora changes
Diffstat (limited to 'owncloud-463e2ea-php71-backport.patch')
-rw-r--r-- | owncloud-463e2ea-php71-backport.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/owncloud-463e2ea-php71-backport.patch b/owncloud-463e2ea-php71-backport.patch new file mode 100644 index 0000000..1a24d73 --- /dev/null +++ b/owncloud-463e2ea-php71-backport.patch @@ -0,0 +1,22 @@ +From 463e2ea15d6fb71b96363d60c7e4bdc2c020eddf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu> +Date: Mon, 4 Jul 2016 13:47:03 +0200 +Subject: [PATCH] Initialize array elements properly + +--- + lib/private/App/InfoParser.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/private/App/InfoParser.php b/lib/private/App/InfoParser.php +index c158e5c..843ed02 100644 +--- a/lib/private/App/InfoParser.php ++++ b/lib/private/App/InfoParser.php +@@ -141,7 +141,7 @@ function xmlToArray($xml) { + $totalElement = count($xml->{$element}); + + if (!isset($array[$element])) { +- $array[$element] = ""; ++ $array[$element] = $totalElement > 1 ? [] : ""; + } + /** @var \SimpleXMLElement $node */ + // Has attributes |