mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge pull request #6177 from 3D-I/ticket/16743
[ticket/16743] Properly check if TMP file exists - PHP 8
This commit is contained in:
commit
47f7a81b41
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue