diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-13 13:57:02 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-14 07:15:58 -0800 |
commit | 64e5d438c7ce291dd030b51d1467fc8736f0aa27 (patch) | |
tree | 6fce70570a5f428534bb5000e1e44bc9c9f11e04 /modules/comment/views/comments.html.php | |
parent | 1a951cb7f61b33437c2e9b04da0565393d072c03 (diff) |
HTML validation, avoid empty <ul>
Diffstat (limited to 'modules/comment/views/comments.html.php')
-rw-r--r-- | modules/comment/views/comments.html.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php index 0ed07c22..58ff1765 100644 --- a/modules/comment/views/comments.html.php +++ b/modules/comment/views/comments.html.php @@ -10,7 +10,9 @@ <?= t("No comments yet. Be the first to <a %attrs>comment</a>!", array("attrs" => html::mark_clean("id= \"g-no-comments\" href=\"" . url::site("form/add/comments/{$item->id}") . "\" class=\"showCommentForm\""))) ?> </p> +<ul> </ul> <? endif ?> +<? if ($comments->count()): ?> <ul> <? foreach ($comments as $comment): ?> <li id="g-comment-<?= $comment->id ?>"> @@ -39,4 +41,5 @@ </li> <? endforeach ?> </ul> +<? endif ?> </div> |