$result=db_query("SELECT c.cid, c.pid, c.nid, c.subject, c.comment, c.timestamp, u.uid, u.name FROM comments c LEFT JOIN users u ON c.uid = u.uid WHERE c.cid = '$cid' GROUP BY c.cid, c.pid, c.nid, c.subject, c.comment, c.timestamp, u.uid, u.name");
if($comment=db_fetch_object($result)){
comment_view($comment,comment_links($comment));
...
...
@@ -538,7 +538,7 @@ function comment_render($nid, $cid) {
}
if($comments){
if(isset($cid)){
if($cid){
comment_thread_min($comments,$threshold,$cid,1);
}
else{
...
...
@@ -556,7 +556,7 @@ function comment_render($nid, $cid) {
$result=db_query("SELECT c.cid, c.pid, c.nid, c.subject, c.comment, c.timestamp, u.uid, u.name FROM comments c LEFT JOIN users u ON c.uid = u.uid WHERE c.cid = '$cid' GROUP BY c.cid, c.pid, c.nid, c.subject, c.comment, c.timestamp, u.uid, u.name");
if($comment=db_fetch_object($result)){
comment_view($comment,comment_links($comment));
...
...
@@ -538,7 +538,7 @@ function comment_render($nid, $cid) {
}
if($comments){
if(isset($cid)){
if($cid){
comment_thread_min($comments,$threshold,$cid,1);
}
else{
...
...
@@ -556,7 +556,7 @@ function comment_render($nid, $cid) {