#17 show event pages without sessions define

This commit is contained in:
isUnknown 2024-11-05 14:36:26 +01:00
parent 8b1bd2df26
commit 8a76ab6821

View file

@ -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 {