diff --git a/site/models/event.php b/site/models/event.php index 0811f6e..cf67ced 100644 --- a/site/models/event.php +++ b/site/models/event.php @@ -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')); diff --git a/site/templates/home.php b/site/templates/home.php index d3b57d2..ca03288 100644 --- a/site/templates/home.php +++ b/site/templates/home.php @@ -41,8 +41,10 @@