2
0
forked from Wavyzz/dolibarr

Fix PHP7.2

This commit is contained in:
Laurent Destailleur
2017-09-08 14:45:11 +02:00
parent 75172966c2
commit e2ccac68c5

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;
}