From 79f010f5c30b60a0007613e180ecaa621147b272 Mon Sep 17 00:00:00 2001 From: Florian Larysch Date: Wed, 2 Sep 2015 16:54:42 +0200 Subject: catch all cases of $closed --- model/Conference.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/model/Conference.php b/model/Conference.php index d6ef913..28c96e1 100644 --- a/model/Conference.php +++ b/model/Conference.php @@ -23,7 +23,7 @@ class Conference extends ModelBase if($closed == "before") return false; - else if($closed == "running") + else if($closed == "running" || $closed == "after") return true; } @@ -36,7 +36,8 @@ class Conference extends ModelBase if($closed == "after" || $closed === true) return true; - else if($closed == "running" || $closed === false) + else if($closed == "running" || $closed == "before" || + $closed === false) return false; } -- cgit v1.2.3