diff --git a/site/config/routes/get-current-season-calendar.php b/site/config/routes/get-current-season-calendar.php index 6c02926..dbe695c 100644 --- a/site/config/routes/get-current-season-calendar.php +++ b/site/config/routes/get-current-season-calendar.php @@ -33,7 +33,7 @@ return [ "title" => $event->title()->value(), "place" => $event->place()->value(), "authors" => $event->authors()->value(), - "hideSessionsOnHome" => (bool) $event->hideSessionsOnHome()->value(), + "hideSessionsOnHome" => $event->hideSessionsOnHome()->value() == 'true' ? true : false, "eventUrl" => $event->url(), "public" => $event->public()->value(), "duration" => $event->duration()->value(), @@ -79,7 +79,6 @@ return [ "ticketingUrl" => $ticketingUrl, "bookableStock" => $bookableStock, "totalStock" => (int) $event->totalStock()->value(), - "hideSessionsOnHome" => (bool) $event->hideSessionsOnHome()->value() ]); }