diff options
Diffstat (limited to 'plugins/UserCountry/Tasks.php')
-rw-r--r-- | plugins/UserCountry/Tasks.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/UserCountry/Tasks.php b/plugins/UserCountry/Tasks.php index 7033e9e597..cd351acbb6 100644 --- a/plugins/UserCountry/Tasks.php +++ b/plugins/UserCountry/Tasks.php @@ -8,12 +8,13 @@ */ namespace Piwik\Plugins\UserCountry; +use Piwik\SettingsPiwik; class Tasks extends \Piwik\Plugin\Tasks { public function schedule() { // add the auto updater task if GeoIP admin is enabled - if (UserCountry::isGeoLocationAdminEnabled()) { + if (UserCountry::isGeoLocationAdminEnabled() && SettingsPiwik::isInternetEnabled() === true) { $this->scheduleTask(new GeoIPAutoUpdater()); } } |