Merge pull request #136 from remicollet/issue-undef

fix Undefined property: GLPIPDF::$imagekeys
This commit is contained in:
Nicola Asuni 2019-09-20 07:47:05 +01:00 committed by GitHub
commit 380416b6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7796,8 +7796,10 @@ class TCPDF {
}
closedir($handle);
}
foreach($this->imagekeys as $file) {
unlink($file);
if (isset($this->imagekeys)) {
foreach($this->imagekeys as $file) {
unlink($file);
}
}
}
$preserve = array(