fix: 519dbb8700
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-20 20:24:35 +08:00
parent 519dbb8700
commit c4792a3b30
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -169,18 +169,19 @@ function calcStandings($contest, $contest_data, &$score, &$standings, $update_co
for ($i = 0; $i < $n_people; $i++) { for ($i = 0; $i < $n_people; $i++) {
if ($i == 0 || !$is_same_rank($standings[$i - 1], $standings[$i])) { if ($i == 0 || !$is_same_rank($standings[$i - 1], $standings[$i])) {
if ($show_reviews) { if ($show_reviews && count($standings[$i]) == 4) {
$standings[$i][] = $standings[$i][3]; $standings[$i][] = $standings[$i][3];
$standings[$i][3] = $i + 1; $standings[$i][3] = $i + 1;
} else { } else {
$standings[$i][] = $i + 1; $standings[$i][] = $i + 1;
} }
} else { } else {
if ($show_reviews) { if ($show_reviews && count($standings[$i]) == 4) {
$standings[$i][] = $standings[$i][3]; $standings[$i][] = $standings[$i][3];
} $standings[$i][3] = $standings[$i - 1][3];
} else {
$standings[$i][] = $standings[$i - 1][3]; $standings[$i][] = $standings[$i - 1][3];
} }
} }
} }
}