mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/15134] Return false if error
PHPBB3-15134
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user