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
diff options
context:
space:
mode:
Diffstat (limited to 'core/Plugin/Report.php')
-rw-r--r--core/Plugin/Report.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Plugin/Report.php b/core/Plugin/Report.php
index 24887fb4c0..c300ad11a3 100644
--- a/core/Plugin/Report.php
+++ b/core/Plugin/Report.php
@@ -410,6 +410,7 @@ class Report
if (empty($restrictToColumns)) {
$restrictToColumns = array_merge($allMetrics, array_keys($this->getProcessedMetrics()));
}
+ $restrictToColumns = array_unique($restrictToColumns);
$processedMetricsById = $this->getProcessedMetricsById();
$metricsSet = array_flip($allMetrics);
@@ -860,7 +861,7 @@ class Report
$result = array();
foreach ($processedMetrics as $processedMetric) {
- if ($processedMetric instanceof ProcessedMetric) { // instanceof check for backwards compatibility
+ if ($processedMetric instanceof ProcessedMetric || $processedMetric instanceof ArchivedMetric) { // instanceof check for backwards compatibility
$result[$processedMetric->getName()] = $processedMetric;
}
}