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