diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2021-10-15 11:04:38 +0200 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2021-10-18 12:39:43 +0200 |
commit | facb50ebcc1f4a9fef8be746717272ef24103007 (patch) | |
tree | a61d8d3dc9ba640ddb519112a12816573e57ff94 /lib/private/App/AppStore/Fetcher/Fetcher.php | |
parent | 643e85cfe81ac079bd2e5bcf1a344a20319f48db (diff) | |
download | nextcloud-server-facb50ebcc1f4a9fef8be746717272ef24103007.tar.gz nextcloud-server-facb50ebcc1f4a9fef8be746717272ef24103007.zip |
fix appstoreenabled check in Fetcher so it's coherent with AppSettingsController
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'lib/private/App/AppStore/Fetcher/Fetcher.php')
-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) { |