mirror of
https://github.com/voc/streaming-website
synced 2024-11-12 23:47:14 +00:00
dc57652519
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.
11 lines
216 B
PHP
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,
|
|
));
|