Fix deref of null object that breaks in PHP 7.4

This commit is contained in:
Daniel Molkentin 2020-04-30 16:11:35 +00:00 committed by Daniel Molkentin
parent 0ff6af6b0d
commit e6ca9b0f59

View file

@ -1,5 +1,5 @@
<div class="container about">
<? if($conference->getTitle() != $next['name']): ?>
<? if ($next != null && $conference->getTitle() != $next['name']): ?>
<h1><?=h($conference->getTitle())?> is over!</h1>
<? endif ?>