1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-26 07:17:36 +02:00

Un encandrant peut encadrer plusieurs équipes

This commit is contained in:
Yohann
2019-12-13 19:09:14 +01:00
parent ef505465d5
commit 79400ca298
8 changed files with 9 additions and 7 deletions

View File

@ -15,6 +15,8 @@ if ($user === null)
require_once "server_files/404.php";
$teams = $user->getTeams();
if ($user->getRole() == Role::PARTICIPANT)
$team = sizeof($teams) == 0 ? null : $teams[0];
$has_error = false;
$error_message = null;