1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 01:20:40 +01:00

[ticket/15134] Return false if error

PHPBB3-15134
This commit is contained in:
Rubén Calvo 2017-03-20 11:49:34 +01:00
parent 29ce6e6352
commit 27ab639fbe

View File

@ -286,14 +286,15 @@ class upload extends \phpbb\avatar\driver\driver
try
{
$this->filesystem->remove($filename);
return true;
}
catch (\phpbb\filesystem\exception\filesystem_exception $e)
{
// Do nothing
// Fail is covered by return statement below
}
}
return true;
return false;
}
/**