diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2017-03-09 23:27:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 23:27:30 +0300 |
commit | 585ddac0bb53f0d739e6f2274f9cdf68058adc3d (patch) | |
tree | adc41bf9c16f837fb65e4b994805cefdbe977fa7 /plugins | |
parent | 3869b4c62b8e3e9cf5574c697385d07b29c1a187 (diff) |
Fix showColumns in Multisites API by pageviews does not work
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/MultiSites/API.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MultiSites/API.php b/plugins/MultiSites/API.php index 2312ebfec3..8e9022f75d 100755 --- a/plugins/MultiSites/API.php +++ b/plugins/MultiSites/API.php @@ -285,7 +285,7 @@ class API extends \Piwik\Plugin\API // ResponseBuilder throws 'Call to a member function getColumns() on a non-object' if ($multipleWebsitesRequested // We don't delete the 0 visits row, if "Enhanced" mode is on. - && !$enhanced + && !$enhanced && (empty($showColumns) || in_array(self::NB_VISITS_METRIC, $showColumns)) ) { $dataTable->filter( 'ColumnCallbackDeleteRow', |