Merge pull request #26047 from nextcloud/JakubOnderka-patch-2

Fix warning in AppFetcher.php when appstore is disabled
This commit is contained in:
Roeland Jago Douma 2021-03-11 10:51:35 +01:00 committed by GitHub
commit dd1248d672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,10 @@ class AppFetcher extends Fetcher {
protected function fetch($ETag, $content, $allowUnstable = false) {
/** @var mixed[] $response */
$response = parent::fetch($ETag, $content);
if (empty($response)) {
return [];
}
$allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily';
$allowNightly = $allowUnstable || $this->getChannel() === 'daily';