mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue