1
0
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:
galaxyoyo
2019-09-19 00:46:32 +02:00
parent 5372350f46
commit c48b97cc6d
6 changed files with 151 additions and 149 deletions

View File

@ -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();
}
}