summaryrefslogtreecommitdiff
path: root/app/Controller/AvatarFile.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-05 21:36:43 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-05 21:36:43 -0400
commitab56d9aff280d4e5b436d8f5d843f586bef9c059 (patch)
treef77c348e643d33e16bbff8076be22f5e6672326a /app/Controller/AvatarFile.php
parent6b78b882d8e7e23353fa401dd3b34c7c262dab62 (diff)
Fixed PHP warning when removing a user with no Avatar image
Diffstat (limited to 'app/Controller/AvatarFile.php')
-rw-r--r--app/Controller/AvatarFile.php1
1 files changed, 1 insertions, 0 deletions
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'])));
}