mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-25 11:00:29 +02:00
Beaucoup de petites modifications
This commit is contained in:
@ -29,8 +29,10 @@ if (isset($_POST["request_validation"])) {
|
||||
$has_error = true;
|
||||
$error_message = "Vous devez cocher la case qui vous engage à participer à l'intégralité des Correspondances.";
|
||||
}
|
||||
else
|
||||
else {
|
||||
$_SESSION["team"]->setValidationStatus(ValidationStatus::WAITING);
|
||||
Mailer::sendRequestValidationMail($team);
|
||||
}
|
||||
}
|
||||
|
||||
/** @var Question[][] $questions_received */
|
||||
@ -95,6 +97,7 @@ class MyTeam
|
||||
$this->team->setProblem($this->problem);
|
||||
|
||||
$DB->exec("UPDATE `teams` SET `problem` = " . $this->problem . " WHERE `id` = " . $this->team->getId() . ";");
|
||||
$DB->exec("UPDATE `documents` SET `problem` = " . $this->problem . " WHERE `team` = " . $this->team->getId() . ";");
|
||||
|
||||
header("Location: $URL_BASE/mon-equipe");
|
||||
}
|
||||
|
Reference in New Issue
Block a user