Fixed PHP warning when removing a user with no Avatar image

This commit is contained in:
Frederic Guillot
2016-05-05 21:36:43 -04:00
parent 6b78b882d8
commit ab56d9aff2
4 changed files with 11 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ class AvatarFile extends Base
$this->checkCSRFParam();
$user = $this->getUser();
$this->avatarFile->remove($user['id']);
$this->userSession->refresh($user['id']);
$this->response->redirect($this->helper->url->to('AvatarFile', 'show', array('user_id' => $user['id'])));
}