Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-01-21 08:45:27 +0400
committermattab <matthieu.aubry@gmail.com>2014-01-21 08:45:27 +0400
commit8a42ff828c43022fddc5539fefad4ac1affa98e2 (patch)
tree08cf538e6dbae830ae9c765d05a600b0ded649b9 /core
parente5a10b27f63a12767239a509f82549197264fc17 (diff)
Refs #4432 Fixing the error in one case (Referrers>Overview / Goals> Overview)
Diffstat (limited to 'core')
-rw-r--r--core/DataArray.php6
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;
+ }
}
}