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 @@ main->format_date($comment['created']); @@ -10,7 +11,7 @@ echo '

' . esc($comment['content']) . '

'; echo ''; } - if (!count($comments)) { + if (!$comments || !count($comments)) { echo ''. lang('no_comments') .''; } ?>