diff --git a/includes/comment.inc b/includes/comment.inc
index 838814d8af1..8afe7fe7e0f 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -253,12 +253,12 @@ function comment_thread_min($cid, $threshold) {
$result = db_query("SELECT c.*, u.* FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.pid = '$cid' ORDER BY c.timestamp, c.cid");
- print "
";
while ($comment = db_fetch_object($result)) {
- comment_view($comment);
+ print "";
+ print " - ". comment_view($comment) .
\n";
comment_thread_min($comment->cid, $threshold);
+ print "
";
}
- print "
";
}
function comment_thread_max($cid, $mode, $threshold, $level = 0, $dummy = 0) {
@@ -266,12 +266,12 @@ function comment_thread_max($cid, $mode, $threshold, $level = 0, $dummy = 0) {
$result = db_query("SELECT c.*, u.* FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.pid = '$cid' ORDER BY c.timestamp, c.cid");
- print "";
while ($comment = db_fetch_object($result)) {
+ print "";
comment_view($comment, (comment_visible($comment, $threshold) ? comment_link($comment, 0) : 0));
comment_thread_max($comment->cid, $mode, $threshold, $level + 1, $dummy + 1);
- }
print "
";
+ }
}
function comment_render($lid, $cid) {