e
This commit is contained in:
parent
8a2c577823
commit
6c2586d3bd
1 changed files with 2 additions and 1 deletions
|
@ -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>';
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue