Skip to content

Commit f9e88ae

Browse files
authored
Merge pull request #695 from nextcloud/fix/updater_one_url
2 parents 1c65edc + 651a0b2 commit f9e88ae

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,8 @@ private function getDownloadURLs(): array {
670670
continue;
671671
}
672672

673+
// If only one download URL exists, $urls is a string
674+
$urls = (array)$urls;
673675
foreach ($urls as $url) {
674676
if (!is_string($url)) {
675677
continue;

lib/Updater.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,8 @@ private function getDownloadURLs(): array {
652652
continue;
653653
}
654654

655+
// If only one download URL exists, $urls is a string
656+
$urls = (array)$urls;
655657
foreach ($urls as $url) {
656658
if (!is_string($url)) {
657659
continue;

updater.phar

64 Bytes
Binary file not shown.

vendor/composer/autoload_static.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ComposerStaticInitcbbead1010db4afef500f7adc2b6cac3
1616
);
1717

1818
public static $prefixLengthsPsr4 = array (
19-
'S' =>
19+
'S' =>
2020
array (
2121
'Symfony\\Polyfill\\Mbstring\\' => 26,
2222
'Symfony\\Polyfill\\Intl\\Normalizer\\' => 33,
@@ -26,58 +26,58 @@ class ComposerStaticInitcbbead1010db4afef500f7adc2b6cac3
2626
'Symfony\\Component\\String\\' => 25,
2727
'Symfony\\Component\\Console\\' => 26,
2828
),
29-
'P' =>
29+
'P' =>
3030
array (
3131
'Psr\\Container\\' => 14,
3232
),
33-
'N' =>
33+
'N' =>
3434
array (
3535
'NC\\Updater\\' => 11,
3636
),
37-
'B' =>
37+
'B' =>
3838
array (
3939
'Bamarni\\Composer\\Bin\\' => 21,
4040
),
4141
);
4242

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

0 commit comments

Comments
 (0)