From fd7a8a0780bb3f88512a89aa5fac54a2318af960 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 11 Apr 2015 23:18:15 -0400 Subject: Make sure the user is connected --- app/Model/Notification.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/Model/Notification.php b/app/Model/Notification.php index 02b4a3ed..8414b121 100644 --- a/app/Model/Notification.php +++ b/app/Model/Notification.php @@ -65,7 +65,7 @@ class Notification extends Base public function getUsersList($project_id, array $exclude_users = array()) { // Exclude the connected user - if (Session::isOpen()) { + if (Session::isOpen() && $this->userSession->isLogged()) { $exclude_users[] = $this->userSession->getId(); } @@ -104,8 +104,8 @@ class Notification extends Base $author = ''; - if (Session::isOpen()) { - $author = e('%s via Kanboard', $this->user->getFullname($_SESSION['user'])); + if (Session::isOpen() && $this->userSession->isLogged()) { + $author = e('%s via Kanboard', $this->user->getFullname($this->session['user'])); } $mailer = Swift_Mailer::newInstance($this->container['mailer']); -- cgit v1.2.3