reports_classes.inc:40: count() has been fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 6 Oct 2019 08:00:28 +0000 (10:00 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 6 Oct 2019 08:00:28 +0000 (10:00 +0200)
reporting/includes/pdf_report.inc

index 5b468764fd2ed194af318adf0836b85840307230..c731f6150d5d88df78594125e425a9b877d7b41d 100644 (file)
@@ -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();