fix : schedule() retourne '' si sessions invalides, filtre les brouillons sur la home
All checks were successful
Deploy / Deploy (push) Successful in 7s
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:
parent
9fc1f6f9b4
commit
f7bb3e86d4
2 changed files with 8 additions and 6 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue