From 8a76ab6821e4fda0d8d59da05c091111b9db0ed7 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Tue, 5 Nov 2024 14:36:26 +0100 Subject: [PATCH] #17 show event pages without sessions define --- site/models/event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/models/event.php b/site/models/event.php index a67ef0b..0811f6e 100644 --- a/site/models/event.php +++ b/site/models/event.php @@ -5,7 +5,7 @@ class EventPage extends Page { $sessions = $this->isMapadoEvent() != 'true' ? $this->sessions()->toStructure() : $this->remoteSessions()->toStructure(); if ($sessions->isEmpty()) { - throw new Exception('Can\'t define sessions for event "' . $this->title()->value() . '". No sessions found.', 1); + return ''; } try {