summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-06-25 13:37:31 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-06-27 10:51:59 +0200
commit20afe94297ca534b9a59cd73dc90d5cb6546ac02 (patch)
treef6902d2dad2000890a7326373430301329844b21 /settings
parent5fbf304c2a1f5d2c5e6a68c28e11c5004bf79646 (diff)
downloadnextcloud-server-20afe94297ca534b9a59cd73dc90d5cb6546ac02.tar.gz
nextcloud-server-20afe94297ca534b9a59cd73dc90d5cb6546ac02.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.php8
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(),