mirror of
https://github.com/nextcloud/server.git
synced 2024-08-30 05:55:15 +02:00
Fix warning in AppFetcher.php when appstore is disabled
Signed-off-by: Jakub Onderka <ahoj@jakubonderka.cz>
This commit is contained in:
parent
62929cc646
commit
1992d11d7d
@ -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
Block a user