$sortfield='lastpost'; } if ($sortfield=="voteavg" and !$foruminfo[allowratings]) { $sortfield="lastpost"; }
$sortfield = 'dateline'; } if ($sortfield == 'voteavg' and !$foruminfo['allowratings']) { $sortfield = 'dateline'; }