I would either extract/replace the original ticket-view.inc.php file over that faulty one, or you could post line 335 and we can have a look.
Just checked the code from the download link above, and it doesn't have any commas on line 335.. have you modded this file?
Marked below is what it looks like:
...
/* -------- Messages & Responses & Notes (if inline)-------------*/
$types = array('M', 'R');
if($cfg->showNotesInline())
$types = 'N';
if(($thread=$ticket->getThreadEntries($types))) {
foreach($thread as $entry) {
?> /*********** LINE 335 ********************/
<table class="<?php echo $threadTypes[$entry; ?>" cellspacing="0" cellpadding="1" width="940" border="0">
<tr>
<th width="200"><?php echo Format:($entry);?></th>
<th width="440"><span><?php echo Format:($entry); ?></span></th>
<th width="300" class="tmeta"><?php echo Format:($entry); ?></th>
</tr>
...