HTML validation, avoid empty <ul>

This commit is contained in:
Andy Staudacher
2010-02-13 13:57:02 -08:00
committed by Tim Almdal
parent 1a951cb7f6
commit 64e5d438c7
2 changed files with 4 additions and 1 deletions

View File

@@ -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>&nbsp;</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>