Call to undefined count_array() in pdf_report.inc. Fixed.
[fa-stable.git] / reporting / includes / pdf_report.inc
index c731f6150d5d88df78594125e425a9b877d7b41d..97cb599f8a66c56d621d8359e269aeade5646b75 100644 (file)
@@ -24,6 +24,7 @@ include_once($path_to_root . "/reporting/includes/reporting.inc");
 include_once($path_to_root . "/admin/db/company_db.inc");
 include_once($path_to_root . "/admin/db/fiscalyears_db.inc");
 include_once($path_to_root . "/admin/db/printers_db.inc");
+include_once($path_to_root . "/includes/ui/ui_globals.inc");
 include_once($path_to_root . "/config.php");
 
 class FrontReport extends Cpdf
@@ -371,7 +372,7 @@ class FrontReport extends Cpdf
                $this->Font('italic');
                if ($this->headers2 != null)
                {
-                       $count = count($this->headers2);
+                       $count = count_array($this->headers2);
                        for ($i = 0; $i < $count; $i++)
                                $this->TextCol2($i, $i + 1,     $this->headers2[$i]);
                        $this->NewLine();
@@ -389,7 +390,7 @@ class FrontReport extends Cpdf
        */
        function SetCommonData($myrow, $branch, $sales_order, $bankaccount, $doctype, $contacts)
        {
-
+               $this->pageNumber = 0;
                $this->formData = array();
                $datnames = array( 
                'myrow' => array('ord_date', 'date_', 'tran_date',