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:
@ -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;");
|
||||
}
|
||||
|
Reference in New Issue
Block a user