1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 01:00:28 +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

@ -323,7 +323,7 @@ class User
public function getTeams()
{
global $DB;
$req = $DB->query("SELECT `id` FROM `teams` WHERE `encadrant` = $this->id;");
$req = $DB->query("SELECT `id` FROM `teams` WHERE `encadrant` = $this->id OR `participant_1` = $this->id OR `participant_2` = $this->id OR `participant_3` = $this->id OR `participant_4` = $this->id OR `participant_5` = $this->id;");
$teams = [];