Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CoreUpdater/UpdateCommunication.php')
-rw-r--r--plugins/CoreUpdater/UpdateCommunication.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/CoreUpdater/UpdateCommunication.php b/plugins/CoreUpdater/UpdateCommunication.php
index 971bd16fa0..43271c83dc 100644
--- a/plugins/CoreUpdater/UpdateCommunication.php
+++ b/plugins/CoreUpdater/UpdateCommunication.php
@@ -30,9 +30,13 @@ class UpdateCommunication
*/
public function isEnabled()
{
- $isEnabled = Config::getInstance()->General['enable_update_communication'];
+ $isEnabled = (bool) Config::getInstance()->General['enable_update_communication'];
- return !empty($isEnabled);
+ if($isEnabled === true && SettingsPiwik::isInternetEnabled() === true){
+ return true;
+ }
+
+ return false;
}
/**