diff --git a/library/Icingadb/Widget/Detail/CommentDetail.php b/library/Icingadb/Widget/Detail/CommentDetail.php index 3ca19e62..389285d7 100644 --- a/library/Icingadb/Widget/Detail/CommentDetail.php +++ b/library/Icingadb/Widget/Detail/CommentDetail.php @@ -44,7 +44,9 @@ class CommentDetail extends BaseHtmlElement $details[] = Html::tag( 'p', Html::sprintf( - t('This acknowledgement expires %s.', '..'), + $this->comment->entry_type === 'ack' + ? t('This acknowledgement expires %s.', '..') + : t('This comment expires %s.', '..'), new TimeUntil($this->comment->expire_time) ) );