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 'plugins/API/ProcessedReport.php')
-rw-r--r--plugins/API/ProcessedReport.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/API/ProcessedReport.php b/plugins/API/ProcessedReport.php
index b37bd7ea51..f498aa1432 100644
--- a/plugins/API/ProcessedReport.php
+++ b/plugins/API/ProcessedReport.php
@@ -363,9 +363,13 @@ class ProcessedReport
list($newReport, $columns, $rowsMetadata, $totals) = $this->handleTableReport($idSite, $dataTable, $reportMetadata, $showRawMetrics, $formatMetrics);
- foreach ($columns as &$name) {
- $name = ucfirst($name);
- }
+ if (function_exists('mb_substr')) {
+ foreach ($columns as &$name) {
+ if (substr($name, 0, 1) === mb_substr($name, 0, 1)) {
+ $name = ucfirst($name);
+ }
+ }
+ }
$website = new Site($idSite);
$period = Period\Factory::build($period, $date);