X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Ffpdi%2Ffpdi.php;h=097491df0266f8527dc834cf4f001613c7cf84fe;hb=66cfb670d9261ad0364a91822dc0766de1620799;hp=d9ab7ced482db3fc0c18b413398c101b3e693be9;hpb=33c457f253099a4207e652452bf11868b8f0a3ec;p=fa-stable.git diff --git a/reporting/includes/fpdi/fpdi.php b/reporting/includes/fpdi/fpdi.php index d9ab7ced..097491df 100644 --- a/reporting/includes/fpdi/fpdi.php +++ b/reporting/includes/fpdi/fpdi.php @@ -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;