X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Ffpdi%2Ffpdi.php;h=097491df0266f8527dc834cf4f001613c7cf84fe;hb=46c5dc49d75f51084402491bfddbd69c306fce2d;hp=4b78389d60bc0e40c2a795d07c4bc40a5ee907dd;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/reporting/includes/fpdi/fpdi.php b/reporting/includes/fpdi/fpdi.php index 4b78389d..097491df 100644 --- a/reporting/includes/fpdi/fpdi.php +++ b/reporting/includes/fpdi/fpdi.php @@ -393,7 +393,7 @@ class FPDI extends FPDF_TPL { reset ($value[1]); - while (list($k, $v) = each($value[1])) { + foreach ($value[1] as $k => $v) { $this->_out($k . " ",false); $this->pdf_write_value($v); } @@ -486,7 +486,7 @@ class FPDI extends FPDF_TPL { * close all files opened by parsers */ function _closeParsers() { - if ($this->state > 2 && count($this->parsers) > 0) { + if ($this->state > 2 && is_array($this->parsers) && count($this->parsers) > 0) { foreach ($this->parsers as $k => $_){ $this->parsers[$k]->closeFile(); $this->parsers[$k] = null;