From c0aa4f2d69c27b240f6c2e8f63e68a541673f811 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 3 Aug 2021 11:11:02 +0200 Subject: [PATCH] Initialize array properly --- core/sqlobjectquery.class.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/sqlobjectquery.class.inc.php b/core/sqlobjectquery.class.inc.php index eb261f644..283551d35 100644 --- a/core/sqlobjectquery.class.inc.php +++ b/core/sqlobjectquery.class.inc.php @@ -388,7 +388,8 @@ class SQLObjectQuery extends SQLQuery { if (count($this->__aSelectedIdFields) > 0) { - $aCountFields = array(); + $aCountFields = []; + $aCountI = []; $i = 0; foreach ($this->__aSelectedIdFields as $sFieldExpr) { $aCountFields[] = "COALESCE($sFieldExpr, 0) AS idCount$i"; // Null values are excluded from the count