diff --git a/trunk/web/contestrank2.php b/trunk/web/contestrank2.php index a946756d455..9cd93609ab4 100644 --- a/trunk/web/contestrank2.php +++ b/trunk/web/contestrank2.php @@ -126,7 +126,7 @@ function s_cmp($A,$B){ $sql="SELECT users.user_id,users.nick,solution.result,solution.num,unix_timestamp(solution.in_date)-$start_time in_date FROM - (select * from solution where solution.contest_id='$cid' and num>=0 ) solution + (select * from solution where solution.contest_id='$cid' and num>=0 and problem_id>0) solution left join users on users.user_id=solution.user_id ORDER BY in_date";