mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/16743] Properly check if TMP file exists - PHP 8
PHPBB3-16743
This commit is contained in:
@@ -476,7 +476,10 @@ class filespec
|
||||
}
|
||||
|
||||
// Remove temporary filename
|
||||
@unlink($this->filename);
|
||||
if (file_exists($this->filename))
|
||||
{
|
||||
@unlink($this->filename);
|
||||
}
|
||||
|
||||
if (count($this->error))
|
||||
{
|
||||
|
Reference in New Issue
Block a user