mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/15134] Return false if error
PHPBB3-15134
This commit is contained in:
parent
29ce6e6352
commit
27ab639fbe
1 changed files with 3 additions and 2 deletions
|
@ -286,14 +286,15 @@ class upload extends \phpbb\avatar\driver\driver
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$this->filesystem->remove($filename);
|
$this->filesystem->remove($filename);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
catch (\phpbb\filesystem\exception\filesystem_exception $e)
|
catch (\phpbb\filesystem\exception\filesystem_exception $e)
|
||||||
{
|
{
|
||||||
// Do nothing
|
// Fail is covered by return statement below
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue