summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Template/notification/comment_create.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Template/notification/comment_create.php b/app/Template/notification/comment_create.php
index 747c4f43..2f2c0fa6 100644
--- a/app/Template/notification/comment_create.php
+++ b/app/Template/notification/comment_create.php
@@ -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']) ?>