[ticket/16743] Properly check if TMP file exists - PHP 8

PHPBB3-16743
This commit is contained in:
3D-I 2021-03-28 21:34:13 +02:00 committed by Marc Alexander
parent 4d5db19feb
commit e49a6e06a8
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

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))
{