Separate out the first comment into a variable called $description so that it can...
[bugdar.git] / showreport.php
index 7119bad73d9555c2e4f960d6b12f504ef59ffb8a..dd6a62893c172b606f005e68edacb1ff84f773b9 100644 (file)
@@ -304,6 +304,7 @@ $comments_fetch = $db->query("
                AND !hidden" : '') . "
        ORDER BY comment.dateline ASC"
 );
+$description = null;
 while ($comment = $db->fetch_array($comments_fetch))
 {
        $comment['posttime'] = $datef->format($bugsys->options['dateformat'], $comment['dateline']);
@@ -324,7 +325,15 @@ while ($comment = $db->fetch_array($comments_fetch))
                }
        }
        
-       eval('$comments .= "' . $template->fetch('showreport_comment') . '";');
+       eval('$temp = "' . $template->fetch('showreport_comment') . '";');
+       if ($description == null)
+       {
+               $description = $temp;
+       }
+       else
+       {
+               $comments .= $temp;
+       }
 }
 
 $show['newreply'] = (can_perform('canpostcomments', $bug['productid']) ? true : false);