aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Larysch2015-09-02 16:54:42 +0200
committerFlorian Larysch2015-09-02 16:56:08 +0200
commit79f010f5c30b60a0007613e180ecaa621147b272 (patch)
tree916f7d5f967f6e7d1f9e0bd0b29ba90c3dd73b54
parentfbd52e74a2103a1af8ebada75f1c9d4bc7e999b1 (diff)
catch all cases of $closed
-rw-r--r--model/Conference.php5
1 files 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;
}