mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-01-08 13:42:23 +00:00
Bug corrigé dans la détection de validité d'une équipe
This commit is contained in:
parent
b66bccb7f0
commit
ef505465d5
@ -109,7 +109,7 @@ function canValidate(Team $team)
|
|||||||
$can_validate &= $team->getParticipants()[2] != null;
|
$can_validate &= $team->getParticipants()[2] != null;
|
||||||
$can_validate &= preg_match("#[1-4]#", $team->getProblem());
|
$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)
|
if ($team->getParticipants()[$i] === NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user