1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-26 05:17:36 +02:00

Mails groupés

This commit is contained in:
Yohann
2019-12-13 19:50:32 +01:00
parent 79400ca298
commit 7e02a2dd2a
6 changed files with 49 additions and 10 deletions

View File

@ -13,4 +13,14 @@ $error_message = null;
$teams = Team::getAllTeams($problem);
$validated_emails = [];
$not_validated_emails = [];
foreach ($teams as $team) {
if ($team->getValidationStatus() == ValidationStatus::VALIDATED)
$validated_emails = array_merge($validated_emails, $team->getAllEmails());
else
$not_validated_emails = array_merge($not_validated_emails, $team->getAllEmails());
}
require_once "server_files/views/probleme.php";