diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-01-21 08:45:27 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-01-21 08:45:27 +0400 |
commit | 8a42ff828c43022fddc5539fefad4ac1affa98e2 (patch) | |
tree | 08cf538e6dbae830ae9c765d05a600b0ded649b9 /core | |
parent | e5a10b27f63a12767239a509f82549197264fc17 (diff) |
Refs #4432 Fixing the error in one case (Referrers>Overview / Goals> Overview)
Diffstat (limited to 'core')
-rw-r--r-- | core/DataArray.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/DataArray.php b/core/DataArray.php index 91ec432494..421e75ee0d 100644 --- a/core/DataArray.php +++ b/core/DataArray.php @@ -287,6 +287,12 @@ class DataArray $revenue = round($revenue); } $values[Metrics::INDEX_REVENUE] = $revenue; + + // if there are no "visit" column, we force one to prevent future complications + // eg. This helps the setDefaultColumnsToDisplay() call + if(!isset($values[Metrics::INDEX_NB_VISITS])) { + $values[Metrics::INDEX_NB_VISITS] = 0; + } } } |