From 2eb2b6e437446023004d81a0be0ea5c827a6359a Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 9 Nov 2017 10:55:19 +0100 Subject: If there is no internet connection don't try to contact appstore Fixes #7119 Signed-off-by: Roeland Jago Douma --- lib/private/App/AppStore/Fetcher/Fetcher.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/App/AppStore') 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 []; } -- cgit v1.2.3