diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-21 07:25:56 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-09-21 07:25:56 +0400 |
commit | 72272d7c652c040e4441a7bf8c34c4316ba0eb06 (patch) | |
tree | fc8c9ae715428cc94f9b92e881182cd9c0ff932b /core/Plugin/Visualization.php | |
parent | 3dfe72413261c6bb8fa158df39e54449e13cfd62 (diff) |
Refs #6078, make sure $this->dataTable is instance of DataTable before calling disablePivotBySubtableIfTableHasNoSubtables.
Diffstat (limited to 'core/Plugin/Visualization.php')
-rw-r--r-- | core/Plugin/Visualization.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Plugin/Visualization.php b/core/Plugin/Visualization.php index 31d9c58980..e82a8d7f73 100644 --- a/core/Plugin/Visualization.php +++ b/core/Plugin/Visualization.php @@ -299,7 +299,9 @@ class Visualization extends ViewDataTable } $pivotBy = Common::getRequestVar('pivotBy', false) ?: $this->requestConfig->pivotBy; - if (empty($pivotBy)) { + if (empty($pivotBy) + && $this->dataTable instanceof DataTable + ) { $this->config->disablePivotBySubtableIfTableHasNoSubtables($this->dataTable); } } |