diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-11 10:51:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 10:51:35 +0100 |
commit | dd1248d672ab634e616defb51f24811328a7ae3a (patch) | |
tree | 6b257894082b55ff1734a443e69ac94ea926bc76 | |
parent | ba369c134ea3c4226840140fc4321aa328a34d7e (diff) | |
parent | 1992d11d7da6c43fd194931453f11b1b56e8a2f4 (diff) | |
download | nextcloud-server-dd1248d672ab634e616defb51f24811328a7ae3a.tar.gz nextcloud-server-dd1248d672ab634e616defb51f24811328a7ae3a.zip |
Merge pull request #26047 from nextcloud/JakubOnderka-patch-2
Fix warning in AppFetcher.php when appstore is disabled
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 4dc517879e8..416e55463cf 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -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'; |