mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 08:58:41 +00:00
fix: 519dbb8700
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
519dbb8700
commit
c4792a3b30
@ -169,18 +169,19 @@ function calcStandings($contest, $contest_data, &$score, &$standings, $update_co
|
||||
|
||||
for ($i = 0; $i < $n_people; $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][3] = $i + 1;
|
||||
} else {
|
||||
$standings[$i][] = $i + 1;
|
||||
}
|
||||
} else {
|
||||
if ($show_reviews) {
|
||||
if ($show_reviews && count($standings[$i]) == 4) {
|
||||
$standings[$i][] = $standings[$i][3];
|
||||
}
|
||||
|
||||
$standings[$i][3] = $standings[$i - 1][3];
|
||||
} else {
|
||||
$standings[$i][] = $standings[$i - 1][3];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user