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:
-rw-r--r--plugins/VisitsSummary/Reports/Get.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/VisitsSummary/Reports/Get.php b/plugins/VisitsSummary/Reports/Get.php
index 25fbdfd862..8ffcac2d9f 100644
--- a/plugins/VisitsSummary/Reports/Get.php
+++ b/plugins/VisitsSummary/Reports/Get.php
@@ -90,6 +90,10 @@ class Get extends \Piwik\Plugin\Report
$view->config->filters[] = function (DataTable $table) use ($view) {
$firstRow = $table->getFirstRow();
+ if (!$firstRow->getColumn('avg_time_generation')) {
+ $view->config->removeSparklineMetric(array('avg_time_generation'));
+ }
+
if (($firstRow->getColumn('nb_pageviews')
+ $firstRow->getColumn('nb_downloads')
+ $firstRow->getColumn('nb_outlinks')) == 0
@@ -246,4 +250,4 @@ class Get extends \Piwik\Plugin\Report
}
}
-} \ No newline at end of file
+}