diff options
author | Daniel Molkentin | 2020-04-30 16:11:35 +0000 |
---|---|---|
committer | Daniel Molkentin | 2020-04-30 18:15:37 +0200 |
commit | e6ca9b0f5976eea5cf2eb1d8be2f155f69897831 (patch) | |
tree | 3a9f893dca5e327c2695e4fe81d7c614b4da1b63 | |
parent | 0ff6af6b0dcc180bedcf1837bc7d015951f44e0c (diff) |
Fix deref of null object that breaks in PHP 7.4
-rw-r--r-- | template/closed.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/template/closed.phtml b/template/closed.phtml index 917cc7c..e56f379 100644 --- a/template/closed.phtml +++ b/template/closed.phtml @@ -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 ?> |