diff --git a/server_files/model.php b/server_files/model.php index 8bc7789..f89fcf6 100644 --- a/server_files/model.php +++ b/server_files/model.php @@ -109,7 +109,7 @@ function canValidate(Team $team) $can_validate &= $team->getParticipants()[2] != null; $can_validate &= preg_match("#[1-4]#", $team->getProblem()); - for ($i = 1; $i <= 5; ++$i) { + for ($i = 0; $i < 5; ++$i) { if ($team->getParticipants()[$i] === NULL) continue;