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>2015-02-19 04:48:06 +0300
committermattab <matthieu.aubry@gmail.com>2015-02-19 04:48:06 +0300
commit67c58eeaf5e60b59ffc98d29cc5cc2dd4a25ffd3 (patch)
tree07be7c64b315d47beda7dd7ec5c9df78bfb3ff9f /core
parent6152bf12fa5f99fbba45b977fc712009b7463e05 (diff)
do not process INDEX_NB_UNIQ_FINGERPRINTS unless specifically asked for
Diffstat (limited to 'core')
-rw-r--r--core/DataAccess/LogAggregator.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/DataAccess/LogAggregator.php b/core/DataAccess/LogAggregator.php
index 13ce164641..8b8d5175ff 100644
--- a/core/DataAccess/LogAggregator.php
+++ b/core/DataAccess/LogAggregator.php
@@ -446,8 +446,14 @@ class LogAggregator
protected function isMetricRequested($metricId, $metricsRequested)
{
- return $metricsRequested === false
- || in_array($metricId, $metricsRequested);
+ // do not process INDEX_NB_UNIQ_FINGERPRINTS unless specifically asked for
+ if($metricsRequested === false) {
+ if($metricId == Metrics::INDEX_NB_UNIQ_FINGERPRINTS) {
+ return false;
+ }
+ return true;
+ }
+ return in_array($metricId, $metricsRequested);
}
protected function getWhereStatement($tableName, $datetimeField, $extraWhere = false)