diff --git a/site/controllers/program.php b/site/controllers/program.php index a99cf53..61ea71a 100644 --- a/site/controllers/program.php +++ b/site/controllers/program.php @@ -49,7 +49,7 @@ function createArraySession($event, $session) { $arraySession['public'] = $event->public(); $arraySession['event-url'] = $event->url(); $arraySession['duration'] = $event->duration(); - $arraySession['ticketingUrl'] = $isMapadoEvent ? $session->ticketingUrl() : false; + $arraySession['ticketingUrl'] = $isMapadoEvent ? $session->ticketingUrl()->value() : $event->bookingUrl()->value(); $arraySession['bookableStock'] = $isMapadoEvent ? $session->bookableStock()->value() : 'free'; $arraySession['totalStock'] = $isMapadoEvent ? (int) $event->totalStock()->value() : 'free'; $arraySession['color'] = $event->color(); diff --git a/site/snippets/event-card.php b/site/snippets/event-card.php index f5140e8..a32a872 100644 --- a/site/snippets/event-card.php +++ b/site/snippets/event-card.php @@ -18,6 +18,8 @@