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/Marketplace/UpdateCommunication.php')
-rw-r--r--plugins/Marketplace/UpdateCommunication.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Marketplace/UpdateCommunication.php b/plugins/Marketplace/UpdateCommunication.php
index efebfa899b..e0562af258 100644
--- a/plugins/Marketplace/UpdateCommunication.php
+++ b/plugins/Marketplace/UpdateCommunication.php
@@ -55,9 +55,12 @@ class UpdateCommunication
*/
public static function canBeEnabled()
{
- $isEnabled = Config::getInstance()->General['enable_update_communication'];
-
- return Marketplace::isMarketplaceEnabled() && !empty($isEnabled);
+ $isEnabled = (bool) Config::getInstance()->General['enable_update_communication'];
+ if($isEnabled === true && Marketplace::isMarketplaceEnabled() === true && SettingsPiwik::isInternetEnabled() === true){
+ return true;
+ }
+
+ return false;
}
/**