diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-11-09 10:55:19 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-11-17 20:35:04 +0100 |
commit | 2eb2b6e437446023004d81a0be0ea5c827a6359a (patch) | |
tree | 21d056478b24a303ff281b496239ea5241f18f67 /lib/private/App/AppStore/Fetcher/Fetcher.php | |
parent | 059be95d6c8e694ed6bece861deb9e2d015cda7d (diff) | |
download | nextcloud-server-2eb2b6e437446023004d81a0be0ea5c827a6359a.tar.gz nextcloud-server-2eb2b6e437446023004d81a0be0ea5c827a6359a.zip |
If there is no internet connection don't try to contact appstore
Fixes #7119
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/App/AppStore/Fetcher/Fetcher.php')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/Fetcher.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index 3ac207ebf75..5ce64671ffa 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -128,8 +128,9 @@ abstract class Fetcher { */ public function get() { $appstoreenabled = $this->config->getSystemValue('appstoreenabled', true); + $internetavailable = $this->config->getSystemValue('has_internet_connection', true); - if (!$appstoreenabled) { + if (!$appstoreenabled || !$internetavailable) { return []; } |