diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2012-06-01 19:37:28 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2012-06-01 19:37:28 +0400 |
commit | 7306fbd5f5255c3f46b09a988776bb99aae3f006 (patch) | |
tree | 927d62dcb0cf90458edb5151bf1288fbcc993266 | |
parent | 66fb831a27beb45900fcb777f7fbdc6233c4361f (diff) |
Fix Notice: Undefined index: enable_processing_unique_visitors_day in /www/nepda/piwik-nepda/core/Piwik.php on line 53 reported in http://forum.piwik.org/read.php?2,894571.8
git-svn-id: http://dev.piwik.org/svn/trunk@6443 59fd770c-687e-43c8-a1e3-f5a4ff64c105
-rw-r--r-- | core/Piwik.php | 2 |
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') |