summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-18 14:31:04 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-18 14:31:04 -0700
commitf0a99ffc2764a64712a5c5c3abc9a4b3f3c09616 (patch)
treefd5c6039e7f98425996d2d4122b2ab29fe91e1e0
parent84c8d1c79a07aa72bb0a22cd3c0673df6f5886f2 (diff)
Undo "else" clause -- we should keep the logic simple and easy to
follow, even if it's redundant. Expand a <ul> to multiple lines.
-rw-r--r--modules/comment/views/comments.html.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php
index 1b9f8bbb..da45f57b 100644
--- a/modules/comment/views/comments.html.php
+++ b/modules/comment/views/comments.html.php
@@ -16,10 +16,13 @@
<? else: ?>
<?= t("No comments yet.") ?>
<? endif ?>
- </p>
- <ul><li class="g-no-comments">&nbsp;</li></ul>
- <? else: ?>
+ </p>
+ <ul>
+ <li class="g-no-comments">&nbsp;</li>
+ </ul>
+ <? endif ?>
+ <? if ($comments->count()): ?>
<ul>
<? foreach ($comments as $comment): ?>
<li id="g-comment-<?= $comment->id ?>">