aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Molkentin2020-04-30 16:11:35 +0000
committerDaniel Molkentin2020-04-30 16:11:35 +0000
commitdf9927bc9cc0702c88f2ae06d0f6a94eb486e5c4 (patch)
tree3a9f893dca5e327c2695e4fe81d7c614b4da1b63
parent0ff6af6b0dcc180bedcf1837bc7d015951f44e0c (diff)
Fix deref of null object that breaks in PHP 7.4
Diffstat (limited to '')
-rw-r--r--template/closed.phtml2
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 ?>