fix
This commit is contained in:
parent
c5ba561a9c
commit
7aa8221cf4
1 changed files with 5 additions and 1 deletions
|
|
@ -74,7 +74,11 @@ return function($kirby, $page) {
|
|||
foreach ($sessions->toStructure() as $session) {
|
||||
$arraySession = createArraySession($event, $session);
|
||||
$currentSeasonSessions[] = $arraySession;
|
||||
$sessionDate = str_replace('-', '', $session->date()->toDate('YMMdd'));
|
||||
try {
|
||||
$sessionDate = str_replace('-', '', $session->date()->toDate('YMMdd'));
|
||||
} catch (\Throwable $th) {
|
||||
$sessionDate = 'Pas de mois';
|
||||
}
|
||||
|
||||
if ($sessionDate >= $today) {
|
||||
$isStillShowing = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue