Fix issue in notification template when there is no comment author

This commit is contained in:
Frederic Guillot 2015-06-21 16:02:22 -04:00
parent 9b78126289
commit 1465ca1ae1
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
<h3><?= t('New comment posted by %s', $comment['name'] ?: $comment['username']) ?></h3>
<?php if (! empty($comment['username'])): ?>
<h3><?= t('New comment posted by %s', $comment['name'] ?: $comment['username']) ?></h3>
<?php else: ?>
<h3><?= t('New comment') ?></h3>
<?php endif ?>
<?= $this->text->markdown($comment['comment']) ?>