Fix PHP7.2

This commit is contained in:
Laurent Destailleur 2017-09-08 14:45:11 +02:00
parent fe1ce5b3ac
commit 7d5dc08a0a

View File

@ -580,7 +580,7 @@ class TCPDI 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) {
$this->cleanUp();
return true;
}