diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-11-15 14:35:52 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-11-15 14:35:52 +0300 |
commit | d78c73e305aa1bd8c2f0e01a0b9f17292f6b0c88 (patch) | |
tree | 8afe5e33501042e4016c1ba33fc5cd1d009d9061 | |
parent | 8ce7e8c5d79a9f60e5828e1562188225a31c9b20 (diff) |
Fixes #6599 do not proceed if the row does not yet have the visits value - hopefully this doesnt fail any test
-rw-r--r-- | core/DataArray.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/DataArray.php b/core/DataArray.php index 7515ef8699..2eab0bbab5 100644 --- a/core/DataArray.php +++ b/core/DataArray.php @@ -99,6 +99,11 @@ class DataArray return; } + // Edge case fail safe + if(!isset($oldRowToUpdate[Metrics::INDEX_NB_VISITS])) { + return; + } + $oldRowToUpdate[Metrics::INDEX_NB_VISITS] += $newRowToAdd[Metrics::INDEX_NB_VISITS]; $oldRowToUpdate[Metrics::INDEX_NB_ACTIONS] += $newRowToAdd[Metrics::INDEX_NB_ACTIONS]; $oldRowToUpdate[Metrics::INDEX_NB_UNIQ_VISITORS] += $newRowToAdd[Metrics::INDEX_NB_UNIQ_VISITORS]; |