diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-07-01 12:33:18 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-07-01 12:33:18 -0400 |
commit | abdfa46cfcc06175dea10b5e285fe5b2331b6ead (patch) | |
tree | 0303dc234f542acd4273e9b8b304577ea21ba19e /app/Template | |
parent | 662506941f6ad00be535c3d854f3500bc12676de (diff) |
Fixed empty title for web notification with only one overdue task
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/dashboard/notifications.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Template/dashboard/notifications.php b/app/Template/dashboard/notifications.php index e0e9b878..3b70b49f 100644 --- a/app/Template/dashboard/notifications.php +++ b/app/Template/dashboard/notifications.php @@ -36,10 +36,8 @@ <i class="fa fa-file-o fa-fw"></i> <?php endif ?> - <?php if ($this->text->contains($notification['event_name'], 'task.overdue')): ?> - <?php if (count($notification['event_data']['tasks']) > 1): ?> - <?= $notification['title'] ?> - <?php endif ?> + <?php if ($this->text->contains($notification['event_name'], 'task.overdue') && count($notification['event_data']['tasks']) > 1): ?> + <?= $notification['title'] ?> <?php else: ?> <?= $this->url->link($notification['title'], 'WebNotificationController', 'redirect', array('notification_id' => $notification['id'], 'user_id' => $user['id'])) ?> <?php endif ?> |