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:
-rw-r--r--core/Piwik.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Piwik.php b/core/Piwik.php
index 47ca3d2c60..6bd6810fb0 100644
--- a/core/Piwik.php
+++ b/core/Piwik.php
@@ -50,7 +50,7 @@ class Piwik
$generalSettings = Piwik_Config::getInstance()->General;
$settingName = "enable_processing_unique_visitors_$periodLabel";
- $result = $generalSettings[$settingName] == 1;
+ $result = !empty($generalSettings[$settingName]) && $generalSettings[$settingName] == 1;
// check enable_processing_unique_visitors_year_and_range for backwards compatibility
if (($periodLabel == 'year' || $periodLabel == 'range')