mirror of
https://github.com/voc/streaming-website
synced 2024-11-14 00:17:18 +00:00
catch all cases of $closed
This commit is contained in:
parent
fbd52e74a2
commit
79f010f5c3
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue