diff options
author | Freya Murphy <freya@freyacat.org> | 2024-07-08 17:24:15 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-07-08 17:24:15 -0400 |
commit | 6c2586d3bdc596840e87157ca092a74a563764a8 (patch) | |
tree | 324930a631d45795179893ef5d9a340ff24521d4 | |
parent | a few fixes, just a few.... (diff) | |
download | website-6c2586d3bdc596840e87157ca092a74a563764a8.tar.gz website-6c2586d3bdc596840e87157ca092a74a563764a8.tar.bz2 website-6c2586d3bdc596840e87157ca092a74a563764a8.zip |
e
-rw-r--r-- | src/web/_views/comments.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ <?php /* Copyright (c) 2024 Freya Murphy */ ?> <?=aria_section('comments', lang('comments'))?> <?php + if ($comments) foreach($comments as $comment) { $date = $this->main->format_date($comment['created']); @@ -10,7 +11,7 @@ echo '<p class="content">' . esc($comment['content']) . '</p>'; echo '</div>'; } - if (!count($comments)) { + if (!$comments || !count($comments)) { echo '<span>'. lang('no_comments') .'</span>'; } ?> |