mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +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
|
// Remove temporary filename
|
||||||
@unlink($this->filename);
|
if (file_exists($this->filename))
|
||||||
|
{
|
||||||
|
@unlink($this->filename);
|
||||||
|
}
|
||||||
|
|
||||||
if (count($this->error))
|
if (count($this->error))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user