diff options
Diffstat (limited to '')
-rw-r--r-- | view/program-json.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/view/program-json.php b/view/program-json.php index 4cce716..08f4289 100644 --- a/view/program-json.php +++ b/view/program-json.php @@ -1,4 +1,8 @@ <?php +$schedule = new Schedule(); +if(!$schedule->isEnabled()) + throw new NotFoundException('Schedule is disabled'); + header('Content-Type: application/json'); echo json_encode(program()); |