try this code then:
PHP Code:
$newthreads = '';
if ( $activenewthread )
{
$dothreads = $DB_site->query_first("
SELECT COUNT(*) AS total
FROM thread
WHERE $iforumperms AND dateline>$bbuserinfo[lastvisit]
");
$count['threads'] = intval( $dothreads['total'] );
$count['threads'] = iif ( $count['threads'] > 0 , number_format($count['threads']) , 'No' );
$pluralthread = iif ( $count['threads']!=1 , 's' , '' );
}
after a closer look i think the if tag is senseless and could produce your problem