diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-06-25 13:37:31 +0200 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-06-28 08:55:11 +0000 |
commit | 2fc91516bae7e1b94259b9317717d7c62b74fa19 (patch) | |
tree | 527e5766fa6d8b5bbc9b9dcf4404cd566bfe45e9 /settings | |
parent | 67d645ae7f77867919d4d5fda0b0c890cf456d16 (diff) | |
download | nextcloud-server-2fc91516bae7e1b94259b9317717d7c62b74fa19.tar.gz nextcloud-server-2fc91516bae7e1b94259b9317717d7c62b74fa19.zip |
Do not show a internet connectivity warning if internet access is disabled
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/Controller/CheckSetupController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php index f760eefacb6..a8102b2e136 100644 --- a/settings/Controller/CheckSetupController.php +++ b/settings/Controller/CheckSetupController.php @@ -123,7 +123,7 @@ class CheckSetupController extends Controller { * Checks if the server can connect to the internet using HTTPS and HTTP * @return bool */ - private function isInternetConnectionWorking() { + private function hasInternetConnectivityProblems(): bool { if ($this->config->getSystemValue('has_internet_connection', true) === false) { return false; } @@ -134,10 +134,10 @@ class CheckSetupController extends Controller { foreach($siteArray as $site) { if ($this->isSiteReachable($site)) { - return true; + return false; } } - return false; + return true; } /** @@ -670,7 +670,7 @@ Raw output 'suggestedOverwriteCliURL' => $this->getSuggestedOverwriteCliURL(), 'cronInfo' => $this->getLastCronInfo(), 'cronErrors' => $this->getCronErrors(), - 'serverHasInternetConnection' => $this->isInternetConnectionWorking(), + 'serverHasInternetConnectionProblems' => $this->hasInternetConnectivityProblems(), 'isMemcacheConfigured' => $this->isMemcacheConfigured(), 'memcacheDocs' => $this->urlGenerator->linkToDocs('admin-performance'), 'isRandomnessSecure' => $this->isRandomnessSecure(), |