1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 06:20:36 +02:00

Correction de problèmes mineurs

This commit is contained in:
galaxyoyo
2019-09-08 22:54:57 +02:00
parent 1bf0316f2b
commit 722fad4e6f
4 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ function quitTeam() {
if ($role == Role::ADMIN || $role == Role::ORGANIZER)
return;
for ($i = 1; $i <= ($role == Role::ENCADRANT ? 6 : 2); ++$i)
for ($i = 1; $i <= ($role == Role::ENCADRANT ? 2 : 6); ++$i)
/** @noinspection SqlResolve */
$DB->exec("UPDATE `teams` SET `" . strtolower(Role::getName($role)) . "_$i` = NULL WHERE `" . strtolower(Role::getName($role)) . "_$i` = $user_id;");
$user->setTeamId(null);