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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2017-05-09 12:42:21 +0300
committerGitHub <noreply@github.com>2017-05-09 12:42:21 +0300
commit41e37ae7cb965bf152ee9bd60745f454a356f769 (patch)
tree74576c62377b8658012131860920d161525b75b8 /plugins/VisitTime/API.php
parent317700513cc732bb2371edbe645555feadbbc545 (diff)
parent125d502da360f84476ae22a5249ab3db3045d3dd (diff)
Merge pull request #11679 from piwik/3.x-dev3.0.4-b3
Release Piwik 3.0.4-b3
Diffstat (limited to 'plugins/VisitTime/API.php')
-rw-r--r--plugins/VisitTime/API.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/VisitTime/API.php b/plugins/VisitTime/API.php
index f706860b4e..28b73b99a4 100644
--- a/plugins/VisitTime/API.php
+++ b/plugins/VisitTime/API.php
@@ -54,7 +54,13 @@ class API extends \Piwik\Plugin\API
$table->filter('Piwik\Plugins\VisitTime\DataTable\Filter\AddSegmentByLabelInUTC', array($timezone, $period, $date));
if ($hideFutureHoursWhenToday) {
- $table = $this->removeHoursInFuture($table, $idSite, $period, $date);
+ if ($table instanceof DataTable\Map) {
+ foreach ($table->getDataTables() as &$dataTable) {
+ $dataTable = $this->removeHoursInFuture($dataTable, $idSite, $period, $date);
+ }
+ } else {
+ $table = $this->removeHoursInFuture($table, $idSite, $period, $date);
+ }
}
return $table;