forked from Wavyzz/dolibarr
Fix PHP7.2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user