Merge pull request #6177 from 3D-I/ticket/16743

[ticket/16743] Properly check if TMP file exists - PHP 8
This commit is contained in:
Marc Alexander 2021-03-30 20:07:42 +02:00 committed by GitHub
commit 47f7a81b41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -476,7 +476,10 @@ class filespec
}
// Remove temporary filename
@unlink($this->filename);
if (file_exists($this->filename))
{
@unlink($this->filename);
}
if (count($this->error))
{