aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--model/Conference.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/model/Conference.php b/model/Conference.php
index 28c96e1..fb29791 100644
--- a/model/Conference.php
+++ b/model/Conference.php
@@ -27,7 +27,11 @@ class Conference extends ModelBase
return true;
}
- return time() >= $this->get('CONFERENCE.STARTS_AT');
+ if($this->has('CONFERENCE.STARTS_AT')) {
+ return time() >= $this->get('CONFERENCE.STARTS_AT');
+ } else {
+ return true;
+ }
}
public function hasEnded() {
@@ -41,7 +45,11 @@ class Conference extends ModelBase
return false;
}
- return time() >= $this->get('CONFERENCE.ENDS_AT');
+ if($this->has('CONFERENCE.ENDS_AT')) {
+ return time() >= $this->get('CONFERENCE.ENDS_AT');
+ } else {
+ return false;
+ }
}
public function hasAuthor() {