Just found out that the text-cutting dots "..." are not appearing when there is a space in the end of the cut string. Because then it is not 100 chars. So I suggest this tiny improvement:
From line 117:
// answer snippet
$answer['acontent'] = qa_substr( strip_tags($answer['acontent']), 0, 100 );
if ( strlen($answer['acontent']) == 100 )
$answer['acontent'] .= '...';
To:
// answer snippet
if ( strlen($answer['acontent']) > 100 ) {
$answer['acontent'] = qa_substr( strip_tags($answer['acontent']), 0, 100 );
$answer['acontent'] .= '...';
}
Furthermore, if there are no best answers, $sel_count = $row['selected']; at line 97 is empty. To show 0 you can add:
$sel_count = $row['selected'];
if(empty($sel_count)) $sel_count = 0; // added