aboutsummaryrefslogtreecommitdiff
path: root/view/schedule-json.php
diff options
context:
space:
mode:
authorMaZderMind2015-04-05 17:53:52 +0200
committerMaZderMind2015-04-05 17:53:52 +0200
commitf0c2649d97699a3f5393e712f9b38a12744a8426 (patch)
tree61302104c1ce0038ec30b968061a83c4d0bc3b16 /view/schedule-json.php
parent8f784be543bd4b086241b8baa37edd7dca71740d (diff)
Return empty Schedule when Conference is Closed
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());