mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-21 14:39:40 +01:00
Merge pull request #143 from DaRealFreak/fix/no-list-access
Prevent crash in case of no list access in cache path
This commit is contained in:
commit
c50c07fade
@ -7788,7 +7788,7 @@ class TCPDF {
|
||||
if ($destroyall AND !$preserve_objcopy) {
|
||||
self::$cleaned_ids[$this->file_id] = true;
|
||||
// remove all temporary files
|
||||
if ($handle = opendir(K_PATH_CACHE)) {
|
||||
if ($handle = @opendir(K_PATH_CACHE)) {
|
||||
while ( false !== ( $file_name = readdir( $handle ) ) ) {
|
||||
if (strpos($file_name, '__tcpdf_'.$this->file_id.'_') === 0) {
|
||||
unlink(K_PATH_CACHE.$file_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user