From 44a7cb94d5002065a18471e4b6f0f8a882d7cd0e Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 6 Oct 2019 10:00:28 +0200 Subject: [PATCH] reports_classes.inc:40: count() has been fixed. --- reporting/includes/pdf_report.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index 5b468764..c731f615 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -341,7 +341,7 @@ class FrontReport extends Cpdf $str = $this->fiscal_year; $this->Text($titleCol, $str, $companyCol); $this->Text($companyCol, $this->user); - for ($i = 1; $i < count($this->params); $i++) + for ($i = 1; $i < count_array($this->params); $i++) { if ($this->params[$i]['from'] != '') { @@ -376,7 +376,7 @@ class FrontReport extends Cpdf $this->TextCol2($i, $i + 1, $this->headers2[$i]); $this->NewLine(); } - $count = count($this->headers); + $count = count_array($this->headers); for ($i = 0; $i < $count; $i++) $this->TextCol($i, $i + 1, $this->headers[$i]); $this->Font(); -- 2.30.2