Fix PHP7.2
This commit is contained in:
parent
fe1ce5b3ac
commit
7d5dc08a0a
@ -580,7 +580,7 @@ class TCPDI extends FPDF_TPL {
|
|||||||
* close all files opened by parsers
|
* close all files opened by parsers
|
||||||
*/
|
*/
|
||||||
function _closeParsers() {
|
function _closeParsers() {
|
||||||
if ($this->state > 2 && count($this->parsers) > 0) {
|
if ($this->state > 2 && is_array($this->parsers) && count($this->parsers) > 0) {
|
||||||
$this->cleanUp();
|
$this->cleanUp();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user