1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 09:00:29 +02:00

Bouton pour envoyer un mail à tout le monde

This commit is contained in:
Yohann
2020-01-01 21:27:28 +01:00
parent eb53514eb9
commit 8cab38e216
3 changed files with 12 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class Team
return $team;
}
public static function getAllTeams($problem, $only_validated = false)
public static function getAllTeams($problem = -1, $only_validated = false)
{
global $DB, $YEAR;
$req = $DB->prepare("SELECT * FROM `teams` WHERE " . ($problem < 0 ? "" : "`problem` = ? AND ") . ($only_validated ? "`validation_status` = 'VALIDATED' AND " : "") . "`year` = $YEAR;");