diff --git a/site/plugins/helpers/index.php b/site/plugins/helpers/index.php index cc4bf2e..a3b5361 100644 --- a/site/plugins/helpers/index.php +++ b/site/plugins/helpers/index.php @@ -230,7 +230,7 @@ function getEndTime($session) { $time1 = DateTime::createFromFormat('Hi', $formattedTime); if ($time1 === false) { - throw new Exception('format d\'heure invalide : ' . $session['time']); + return null; } $formattedDuration = preg_replace('/[^0-9]/', '', $session['duration']); diff --git a/site/templates/program.php b/site/templates/program.php index ec86b98..f529ce1 100644 --- a/site/templates/program.php +++ b/site/templates/program.php @@ -157,7 +157,7 @@ - +