From ab56d9aff280d4e5b436d8f5d843f586bef9c059 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 5 May 2016 21:36:43 -0400 Subject: Fixed PHP warning when removing a user with no Avatar image --- app/Controller/AvatarFile.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Controller/AvatarFile.php') diff --git a/app/Controller/AvatarFile.php b/app/Controller/AvatarFile.php index a47cca66..5974cde7 100644 --- a/app/Controller/AvatarFile.php +++ b/app/Controller/AvatarFile.php @@ -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']))); } -- cgit v1.2.3