diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-03 07:30:13 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-03 07:30:13 +0400 |
commit | 2e125df447d76e8d618ca0b944fd2bad7adc145d (patch) | |
tree | 2154581a10c070920cf498d8a527133f7b353879 /core | |
parent | 833fcf3506165e63fca8c82f9f91822e420dfe49 (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 784dd55b09..cbd5b36e4c 100644 --- a/core/CronArchive.php +++ b/core/CronArchive.php @@ -1131,6 +1131,9 @@ class CronArchive private function getVisitsFromApiResponse($stats) { + if(empty($stats)) { + return 0; + } $visits = 0; foreach($stats as $metrics) { if(empty($metrics['nb_visits'])) { |