diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-03 07:29:18 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-03 07:29:18 +0400 |
commit | 833fcf3506165e63fca8c82f9f91822e420dfe49 (patch) | |
tree | 3a1df95a27964d2887f093d2b315c6f36127ffe8 /core | |
parent | baa840bf4a5d16bb6097625671c6e55d30becbac (diff) |
Fix notice
Diffstat (limited to 'core')
-rw-r--r-- | core/CronArchive.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php index 0f3e877de5..784dd55b09 100644 --- a/core/CronArchive.php +++ b/core/CronArchive.php @@ -1122,6 +1122,9 @@ class CronArchive private function getVisitsLastPeriodFromApiResponse($stats) { + if(empty($stats)) { + return 0; + } $today = end($stats); return $today['nb_visits']; } |