Skip to content

Commit b66c0ce

Browse files
authored
Merge pull request #697 from nextcloud/backport/695/stable32
2 parents 548386b + 593cca2 commit b66c0ce

4 files changed

Lines changed: 22 additions & 16 deletions

File tree

index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,9 @@ private function getDownloadURLs(): array {
619619
if (!$this->isAbleToDecompress($format)) {
620620
continue;
621621
}
622+
623+
// If only one download URL exists, $urls is a string
624+
$urls = (array)$urls;
622625
foreach ($urls as $url) {
623626
if (!is_string($url)) {
624627
continue;

lib/Updater.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,9 @@ private function getDownloadURLs(): array {
601601
if (!$this->isAbleToDecompress($format)) {
602602
continue;
603603
}
604+
605+
// If only one download URL exists, $urls is a string
606+
$urls = (array)$urls;
604607
foreach ($urls as $url) {
605608
if (!is_string($url)) {
606609
continue;

updater.phar

87 Bytes
Binary file not shown.

vendor/composer/autoload_static.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ComposerStaticInit936ba63ded5d1b8248cdb4d5673af0ea
1818
);
1919

2020
public static $prefixLengthsPsr4 = array (
21-
'S' =>
21+
'S' =>
2222
array (
2323
'Symfony\\Polyfill\\Php80\\' => 23,
2424
'Symfony\\Polyfill\\Php73\\' => 23,
@@ -30,66 +30,66 @@ class ComposerStaticInit936ba63ded5d1b8248cdb4d5673af0ea
3030
'Symfony\\Component\\String\\' => 25,
3131
'Symfony\\Component\\Console\\' => 26,
3232
),
33-
'P' =>
33+
'P' =>
3434
array (
3535
'Psr\\Container\\' => 14,
3636
),
37-
'N' =>
37+
'N' =>
3838
array (
3939
'NC\\Updater\\' => 11,
4040
),
41-
'B' =>
41+
'B' =>
4242
array (
4343
'Bamarni\\Composer\\Bin\\' => 21,
4444
),
4545
);
4646

4747
public static $prefixDirsPsr4 = array (
48-
'Symfony\\Polyfill\\Php80\\' =>
48+
'Symfony\\Polyfill\\Php80\\' =>
4949
array (
5050
0 => __DIR__ . '/..' . '/symfony/polyfill-php80',
5151
),
52-
'Symfony\\Polyfill\\Php73\\' =>
52+
'Symfony\\Polyfill\\Php73\\' =>
5353
array (
5454
0 => __DIR__ . '/..' . '/symfony/polyfill-php73',
5555
),
56-
'Symfony\\Polyfill\\Mbstring\\' =>
56+
'Symfony\\Polyfill\\Mbstring\\' =>
5757
array (
5858
0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
5959
),
60-
'Symfony\\Polyfill\\Intl\\Normalizer\\' =>
60+
'Symfony\\Polyfill\\Intl\\Normalizer\\' =>
6161
array (
6262
0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer',
6363
),
64-
'Symfony\\Polyfill\\Intl\\Grapheme\\' =>
64+
'Symfony\\Polyfill\\Intl\\Grapheme\\' =>
6565
array (
6666
0 => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme',
6767
),
68-
'Symfony\\Polyfill\\Ctype\\' =>
68+
'Symfony\\Polyfill\\Ctype\\' =>
6969
array (
7070
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
7171
),
72-
'Symfony\\Contracts\\Service\\' =>
72+
'Symfony\\Contracts\\Service\\' =>
7373
array (
7474
0 => __DIR__ . '/..' . '/symfony/service-contracts',
7575
),
76-
'Symfony\\Component\\String\\' =>
76+
'Symfony\\Component\\String\\' =>
7777
array (
7878
0 => __DIR__ . '/..' . '/symfony/string',
7979
),
80-
'Symfony\\Component\\Console\\' =>
80+
'Symfony\\Component\\Console\\' =>
8181
array (
8282
0 => __DIR__ . '/..' . '/symfony/console',
8383
),
84-
'Psr\\Container\\' =>
84+
'Psr\\Container\\' =>
8585
array (
8686
0 => __DIR__ . '/..' . '/psr/container/src',
8787
),
88-
'NC\\Updater\\' =>
88+
'NC\\Updater\\' =>
8989
array (
9090
0 => __DIR__ . '/../..' . '/lib',
9191
),
92-
'Bamarni\\Composer\\Bin\\' =>
92+
'Bamarni\\Composer\\Bin\\' =>
9393
array (
9494
0 => __DIR__ . '/..' . '/bamarni/composer-bin-plugin/src',
9595
),

0 commit comments

Comments
 (0)