Fix warning in AppFetcher.php when appstore is disabled

Signed-off-by: Jakub Onderka <ahoj@jakubonderka.cz>
This commit is contained in:
Jakub Onderka 2021-03-10 16:11:14 +01:00
parent 62929cc646
commit 1992d11d7d

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';