From c01f7979db801aca3cd42234cc4a7fafaec0a9cd Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 31 Mar 2015 17:16:21 +0200 Subject: Move Schedule-Availability Checks, too --- view/program-json.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'view/program-json.php') 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 @@ isEnabled()) + throw new NotFoundException('Schedule is disabled'); + header('Content-Type: application/json'); echo json_encode(program()); -- cgit v1.2.3