Fix PHP notice when sending overdue notifications

This commit is contained in:
Frederic Guillot
2016-08-15 20:46:26 -04:00
parent 70104eff15
commit 5f82a942c0
3 changed files with 10 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ class MailNotification extends Base implements NotificationInterface
{
return sprintf(
'[%s] %s',
$eventData['task']['project_name'],
isset($eventData['project_name']) ? $eventData['project_name'] : $eventData['task']['project_name'],
$this->notificationModel->getTitleWithoutAuthor($eventName, $eventData)
);
}