summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-07-08 17:24:15 -0400
committerFreya Murphy <freya@freyacat.org>2024-07-08 17:24:15 -0400
commit6c2586d3bdc596840e87157ca092a74a563764a8 (patch)
tree324930a631d45795179893ef5d9a340ff24521d4 /src
parenta few fixes, just a few.... (diff)
downloadwebsite-6c2586d3bdc596840e87157ca092a74a563764a8.tar.gz
website-6c2586d3bdc596840e87157ca092a74a563764a8.tar.bz2
website-6c2586d3bdc596840e87157ca092a74a563764a8.zip
e
Diffstat (limited to 'src')
-rw-r--r--src/web/_views/comments.php3
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>';
}
?>