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 */ ?>
<?=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>';
}
?>