Merge pull request #26047 from nextcloud/JakubOnderka-patch-2
Fix warning in AppFetcher.php when appstore is disabled
This commit is contained in:
commit
dd1248d672
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue