diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-09 00:32:55 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-09 00:32:55 +0300 |
commit | 47145e0b8993dfb576a230c32de04bc3cc7b1d26 (patch) | |
tree | 94f9fc5d2ccb0eadbc397a78031b5fab1c749c34 /core/CronArchive.php | |
parent | 756565b2263d3466a5e29f81621bdee53fbda5cf (diff) |
Fixing more tests.
Diffstat (limited to 'core/CronArchive.php')
-rw-r--r-- | core/CronArchive.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php index 5cf42664a4..e7a470bd32 100644 --- a/core/CronArchive.php +++ b/core/CronArchive.php @@ -1205,6 +1205,10 @@ class CronArchive $today = end($stats); + if (empty($today)) { + return 0; + } + return $today['nb_visits']; } |