mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-24 21:40:30 +02:00
Possibilité de virer ou d'ajouter des personnes dans les équipes par les administrateurs
This commit is contained in:
@ -73,7 +73,7 @@ class Team
|
||||
public static function getAllTeams($problem)
|
||||
{
|
||||
global $DB, $YEAR;
|
||||
$req = $DB->prepare("SELECT * FROM `teams` WHERE `problem` = ? AND `year` = $YEAR;");
|
||||
$req = $DB->prepare("SELECT * FROM `teams` WHERE " . ($problem <= 0 ? "" : "`problem` = ? AND ") . "`year` = $YEAR;");
|
||||
$req->execute([htmlspecialchars($problem)]);
|
||||
|
||||
$teams = [];
|
||||
|
Reference in New Issue
Block a user