aboutsummaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--view/schedule-json.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/view/schedule-json.php b/view/schedule-json.php
index 739b71b..b6fdfe5 100644
--- a/view/schedule-json.php
+++ b/view/schedule-json.php
@@ -5,4 +5,9 @@ if(!$schedule->isEnabled())
throw new NotFoundException('Schedule is disabled');
header('Content-Type: application/json');
-echo json_encode($schedule->getSchedule());
+
+if($conference->isClosed())
+ echo '{}';
+
+else
+ echo json_encode($schedule->getSchedule());