1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-24 18:20:30 +02:00

Calendrier

This commit is contained in:
galaxyoyo
2019-09-12 15:35:16 +02:00
parent 762797142b
commit 416264b53c
5 changed files with 192 additions and 5 deletions

View File

@ -55,7 +55,7 @@ function quitTeam()
else
$DB->exec("UPDATE `teams` SET `encadrant` = NULL WHERE `encadrant` = $user_id;");
$user->setTeamId(null);
for ($i = 1; $i <= 5; ++$i) {
for ($i = 1; $i <= 4; ++$i) {
/** @noinspection SqlResolve */
$DB->exec("UPDATE `teams` SET `participant_$i` = `participant_" . strval($i + 1) . "`, `participant_" . strval($i + 1) . "` = NULL WHERE `participant_$i` IS NULL;");
}