mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-18 05:58:20 +01:00
Fix UserController::deleteImage()
This commit is contained in:
parent
97c16314df
commit
924154ee8a
@ -228,7 +228,7 @@ class UsersController extends AbstractController
|
||||
protected function deleteImage(User $user): void
|
||||
{
|
||||
$image = $user->image()->path();
|
||||
if ($image !== null && FileSystem::exists($image)) {
|
||||
if (FileSystem::isFile($image, assertExists: false)) {
|
||||
FileSystem::delete($image);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user