diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-11 23:18:15 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-11 23:18:15 -0400 |
commit | fd7a8a0780bb3f88512a89aa5fac54a2318af960 (patch) | |
tree | 1c32e6bedcaf26436961917750596c75d8b1689b /app/Model | |
parent | 1b5cbf56117116a6c87fe5d26144951f539f7f76 (diff) |
Make sure the user is connected
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/Notification.php | 6 |
1 files changed, 3 insertions, 3 deletions
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']); |