diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index cbba93e53..d7cf903cb 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -2156,20 +2156,18 @@ $(document).ready( function() { } if($owner->getID() == $user->getID() && $receiptStatus = $latestContent->getReceiptStatus()) { $rstat = array('-1'=>0, '0'=>0, '1'=>0, '-2'=>0); - $allcomments = array(); + $allcomments = array('-1'=>array(), '1'=>array()); foreach ($receiptStatus as $r) { $rstat[''.$r['status']]++; if($r['comment']) - $allcomments[] = $r['comment']; + $allcomments[''.$r['status']][] = htmlspecialchars($r['comment']); } $totalreceipts = $rstat['-1'] + $rstat['0'] + $rstat['1']; $content .= ";