diff options
Diffstat (limited to 'plugins/Events/Events.php')
-rw-r--r-- | plugins/Events/Events.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Events/Events.php b/plugins/Events/Events.php index e178dc197b..84576c2832 100644 --- a/plugins/Events/Events.php +++ b/plugins/Events/Events.php @@ -143,7 +143,8 @@ class Events extends \Piwik\Plugin $secondaryDimension = $this->getSecondaryDimensionFromRequest(); $view->config->subtable_controller_action = API::getInstance()->getActionToLoadSubtables($apiMethod, $secondaryDimension); - if (Common::getRequestVar('pivotBy', false) === false) { + $pivotBy = Common::getRequestVar('pivotBy', false); + if (empty($pivotBy)) { $view->config->columns_to_display = array('label', 'nb_events', 'sum_event_value'); } |