From ef505465d5f9d9fd44bf2caece6adf37f89cb1bc Mon Sep 17 00:00:00 2001 From: Yohann Date: Mon, 9 Dec 2019 15:20:46 +0100 Subject: [PATCH] =?UTF-8?q?Bug=20corrig=C3=A9=20dans=20la=20d=C3=A9tection?= =?UTF-8?q?=20de=20validit=C3=A9=20d'une=20=C3=A9quipe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server_files/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;