aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-10-20 20:43:26 +0200
committerGitHub <noreply@github.com>2016-10-20 20:43:26 +0200
commitc7ba73e6f48b3a69b4f692c739b8c53e18735235 (patch)
treed5a5c6322fcf7129abe394450d1ec00855c81f6c /lib
parent98c846456417989d995fe868731e2b1bd77f0f37 (diff)
parentef842ef20a9fb9330173b09c4f889bd2264c8f87 (diff)
downloadnextcloud-server-c7ba73e6f48b3a69b4f692c739b8c53e18735235.tar.gz
nextcloud-server-c7ba73e6f48b3a69b4f692c739b8c53e18735235.zip
Merge pull request #1824 from nextcloud/downstream-26423
Ensure $commands being an array
Diffstat (limited to 'lib')
-rw-r--r--lib/private/App/DependencyAnalyzer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/App/DependencyAnalyzer.php b/lib/private/App/DependencyAnalyzer.php
index 7adb5d1c574..7b48e81f3eb 100644
--- a/lib/private/App/DependencyAnalyzer.php
+++ b/lib/private/App/DependencyAnalyzer.php
@@ -197,6 +197,9 @@ class DependencyAnalyzer {
if (!is_array($commands)) {
$commands = array($commands);
}
+ if (isset($commands['@value'])) {
+ $commands = [$commands];
+ }
$os = $this->platform->getOS();
foreach ($commands as $command) {
if (isset($command['@attributes']['os']) && $command['@attributes']['os'] !== $os) {