summaryrefslogtreecommitdiff
path: root/app/Model/Notification.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/Notification.php')
-rw-r--r--app/Model/Notification.php6
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']);