Check if imagekeys exist

This commit is contained in:
nicolaasuni 2020-02-12 13:14:52 +00:00
parent 185eb13f21
commit 84d41c66fd
4 changed files with 7 additions and 5 deletions

View File

@ -1 +1 @@
6.3.3
6.3.4

View File

@ -1,6 +1,6 @@
{
"name": "tecnickcom/tcpdf",
"version": "6.3.3",
"version": "6.3.4",
"homepage": "http://www.tcpdf.org/",
"type": "library",
"description": "TCPDF is a PHP class for generating PDF documents and barcodes.",

View File

@ -55,7 +55,7 @@ class TCPDF_STATIC {
* Current TCPDF version.
* @private static
*/
private static $tcpdf_version = '6.3.3';
private static $tcpdf_version = '6.3.4';
/**
* String alias for total number of pages.

View File

@ -7785,8 +7785,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(