1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 12:38:26 +02:00

Amélioration du code de la page pour rejoindre une équipe

This commit is contained in:
galaxyoyo
2019-09-10 00:49:55 +02:00
parent fffdaabe7c
commit 98fb682c66
3 changed files with 52 additions and 36 deletions

View File

@ -7,7 +7,7 @@
Tournoi : <a href="<?= $URL_BASE . "/tournoi/" . $tournament->getName() ?>"><?= $tournament->getName() ?></a><br/>
<?php
for ($i = 1; $i <= 2; ++$i) {
if ($team->getEncadrants()[$i] == NULL)
if ($team->getEncadrants()[$i - 1] == NULL)
continue;
$encadrant = User::fromId($team->getEncadrants()[$i - 1]);
$id = $encadrant->getId();