diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-20 20:43:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-20 20:43:26 +0200 |
commit | c7ba73e6f48b3a69b4f692c739b8c53e18735235 (patch) | |
tree | d5a5c6322fcf7129abe394450d1ec00855c81f6c /lib | |
parent | 98c846456417989d995fe868731e2b1bd77f0f37 (diff) | |
parent | ef842ef20a9fb9330173b09c4f889bd2264c8f87 (diff) | |
download | nextcloud-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.php | 3 |
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) { |