[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 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;
} }
/** /**