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