From: Joe Hunt Date: Sun, 6 Oct 2019 08:00:28 +0000 (+0200) Subject: reports_classes.inc:40: count() has been fixed. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=44a7cb94d5002065a18471e4b6f0f8a882d7cd0e reports_classes.inc:40: count() has been fixed. --- 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();