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:
authormattab <matthieu.aubry@gmail.com>2014-04-14 09:15:19 +0400
committermattab <matthieu.aubry@gmail.com>2014-04-14 09:15:19 +0400
commit3c8c22e8958a95de01469358b5c7429a111f3f14 (patch)
tree14ef8491ff4af9ac1b897c10aa84f7788847c3be /plugins/Insights/InsightReport.php
parent2d0230148ef1ac6b12b4d8b724561ddb94d87cde (diff)
parenta02ba002bd2cc7f5cde1a0293335a95d866dc77f (diff)
Merge branch 'master' of github.com:piwik/piwik2.2.0-rc1
Diffstat (limited to 'plugins/Insights/InsightReport.php')
-rw-r--r--plugins/Insights/InsightReport.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Insights/InsightReport.php b/plugins/Insights/InsightReport.php
index e7937a4f55..5310ff1185 100644
--- a/plugins/Insights/InsightReport.php
+++ b/plugins/Insights/InsightReport.php
@@ -218,9 +218,14 @@ class InsightReport
)
);
+ $metricName = $metric;
+ if (!empty($reportMetadata['metrics'][$metric])) {
+ $metricName = $reportMetadata['metrics'][$metric];
+ }
+
$dataTable->setMetadataValues(array(
'reportName' => $reportMetadata['name'],
- 'metricName' => $reportMetadata['metrics'][$metric],
+ 'metricName' => $metricName,
'date' => $date,
'lastDate' => $lastDate,
'period' => $period,