From 4a17db91ae7a75c90d09725efb61e71499f1786b Mon Sep 17 00:00:00 2001 From: jacklento Date: Thu, 20 May 2021 11:29:18 -0700 Subject: [PATCH] Update SummationReportGridView.php fixed an issue with count() throwing an error in new PHP ver --- .../modules/reports/components/SummationReportGridView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x2engine/protected/modules/reports/components/SummationReportGridView.php b/x2engine/protected/modules/reports/components/SummationReportGridView.php index da485de7e..2bc84c107 100644 --- a/x2engine/protected/modules/reports/components/SummationReportGridView.php +++ b/x2engine/protected/modules/reports/components/SummationReportGridView.php @@ -104,7 +104,7 @@ public function registerClientScript() { * Initializes hidden columns */ public function initColumns () { - if (count ($this->hiddenColumns)) { + if (is_array($this->hiddenColumns) && count ($this->hiddenColumns)) { $tmp = $this->columns; $this->columns = $this->hiddenColumns; parent::initColumns ();