summaryrefslogtreecommitdiffstats
path: root/settings/Controller/CheckSetupController.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/Controller/CheckSetupController.php')
-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(),