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/ViewDataTable.php')
-rw-r--r--core/ViewDataTable.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/ViewDataTable.php b/core/ViewDataTable.php
index 13f4c294a8..81e2ff6805 100644
--- a/core/ViewDataTable.php
+++ b/core/ViewDataTable.php
@@ -1227,6 +1227,9 @@ abstract class Piwik_ViewDataTable
private function removeEmptyColumnsFromDisplay()
{
+ if(empty($this->dataTable)) {
+ return;
+ }
if ($this->dataTable instanceof Piwik_DataTable_Array) {
$emptyColumns = $this->dataTable->getMetadataIntersectArray(Piwik_DataTable::EMPTY_COLUMNS_METADATA_NAME);
} else {