This commit is contained in:
Freya Murphy 2024-07-08 17:24:15 -04:00
parent 8a2c577823
commit 6c2586d3bd
Signed by: freya
GPG key ID: 744AB800E383AE52

View file

@ -1,6 +1,7 @@
<?php /* Copyright (c) 2024 Freya Murphy */ ?> <?php /* Copyright (c) 2024 Freya Murphy */ ?>
<?=aria_section('comments', lang('comments'))?> <?=aria_section('comments', lang('comments'))?>
<?php <?php
if ($comments)
foreach($comments as $comment) { foreach($comments as $comment) {
$date = $this->main->format_date($comment['created']); $date = $this->main->format_date($comment['created']);
@ -10,7 +11,7 @@
echo '<p class="content">' . esc($comment['content']) . '</p>'; echo '<p class="content">' . esc($comment['content']) . '</p>';
echo '</div>'; echo '</div>';
} }
if (!count($comments)) { if (!$comments || !count($comments)) {
echo '<span>'. lang('no_comments') .'</span>'; echo '<span>'. lang('no_comments') .'</span>';
} }
?> ?>