diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2021-10-21 12:42:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 12:42:14 +0200 |
commit | 0bef570fe9d06d97e5c9d05b689de26a06366e69 (patch) | |
tree | 8853baf849cd0b5cf07feb03b9c7519e88ba8672 /lib | |
parent | c5405befcfeb5dcc0d8cce85d5ea8466fed3c268 (diff) | |
parent | f24e8212c383e74261a42d1fcf88a81bde2ed5e8 (diff) | |
download | nextcloud-server-0bef570fe9d06d97e5c9d05b689de26a06366e69.tar.gz nextcloud-server-0bef570fe9d06d97e5c9d05b689de26a06366e69.zip |
Merge pull request #29256 from nextcloud/fix/noid/harmonize-appstoreenabled-check
Fix appstoreenabled check
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/Fetcher.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index c02d77dec46..788f15c183f 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -90,7 +90,7 @@ abstract class Fetcher { * @return array */ protected function fetch($ETag, $content) { - $appstoreenabled = $this->config->getSystemValue('appstoreenabled', true); + $appstoreenabled = $this->config->getSystemValueBool('appstoreenabled', true); if ((int)$this->config->getAppValue('settings', 'appstore-fetcher-lastFailure', '0') > time() - self::RETRY_AFTER_FAILURE_SECONDS) { return []; } @@ -148,7 +148,7 @@ abstract class Fetcher { * @return array */ public function get($allowUnstable = false) { - $appstoreenabled = $this->config->getSystemValue('appstoreenabled', true); + $appstoreenabled = $this->config->getSystemValueBool('appstoreenabled', true); $internetavailable = $this->config->getSystemValue('has_internet_connection', true); if (!$appstoreenabled || !$internetavailable) { |