From 6c2586d3bdc596840e87157ca092a74a563764a8 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 8 Jul 2024 17:24:15 -0400 Subject: [PATCH] e --- src/web/_views/comments.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/_views/comments.php b/src/web/_views/comments.php index 7f8acf2..0544f84 100644 --- a/src/web/_views/comments.php +++ b/src/web/_views/comments.php @@ -1,6 +1,7 @@ main->format_date($comment['created']); @@ -10,7 +11,7 @@ echo '

' . esc($comment['content']) . '

'; echo ''; } - if (!count($comments)) { + if (!$comments || !count($comments)) { echo ''. lang('no_comments') .''; } ?>