Skip to content

Commit 669910a

Browse files
keep existing check
1 parent 773b944 commit 669910a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tcpdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7892,7 +7892,7 @@ public function _destroy($destroyall=false, $preserve_objcopy=false) {
78927892
// remove all temporary files
78937893
if ($handle = @opendir(K_PATH_CACHE)) {
78947894
while ( false !== ( $file_name = readdir( $handle ) ) ) {
7895-
if (strpos($file_name, '__tcpdf_'.$this->file_id.'_') === 0) {
7895+
if (strpos($file_name, '__tcpdf_'.$this->file_id.'_') === 0 && @TCPDF_STATIC::file_exists(K_PATH_CACHE . $file_name)) {
78967896
$this->_unlink(K_PATH_CACHE.$file_name);
78977897
}
78987898
}

0 commit comments

Comments
 (0)