mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-25 03:40:28 +02:00
Calendrier
This commit is contained in:
@ -6,7 +6,7 @@ if ($_SESSION["role"] != Role::ADMIN)
|
||||
$has_error = false;
|
||||
$error_message = null;
|
||||
|
||||
if (isset($_POST["update_calendar"])) {
|
||||
if (isset($_GET["edit"]) && isset($_POST["update_calendar"])) {
|
||||
$update_calendar = new UpdateCalendar($_POST);
|
||||
try {
|
||||
$update_calendar->makeVerifications();
|
||||
@ -71,7 +71,7 @@ class UpdateCalendar
|
||||
$CONFIG->setStartPhase4Date($this->date_start_phase4 . " " . $this->time_start_phase4);
|
||||
$CONFIG->setEndPhase4Date($this->date_end_phase4 . " " . $this->time_end_phase4);
|
||||
|
||||
header("Location: $URL_BASE/problemes");
|
||||
header("Location: $URL_BASE/calendrier");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user