fix : schedule() retourne '' si sessions invalides, filtre les brouillons sur la home
All checks were successful
Deploy / Deploy (push) Successful in 7s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-05-04 15:22:39 +02:00
parent 9fc1f6f9b4
commit f7bb3e86d4
2 changed files with 8 additions and 6 deletions

View file

@ -12,7 +12,7 @@ class EventPage extends Page {
$firstSession = $sessions->first()->date();
$lastSession = $sessions->last()->date();
} catch (\Throwable $th) {
throw new Exception('Can\'t define sessions for event "' . $this->title()->value() . '".', 1);
return '';
}
$startDay = intval($firstSession->toDate('d'));