streaming-website/view/closed.php
Jannik Beyerstedt dc57652519 PHP 8: Handle more errors explicitly
The error control operator "@" has changed behavior in PHP8 and generally seems
like a quite bad hack. So let's handle array/ dict access errors explicitly.
2023-10-27 20:18:21 +02:00

11 lines
216 B
PHP

<?php
$events = Upcoming::getNextEvents();
echo $tpl->render(array(
'page' => 'closed',
'title' => 'See you soon … somewhere else!',
'next' => isset($events[0]) ? $events[0] : null,
'events' => $events,
));