1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[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

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