From 91c7cbeb5e516b3839155135012be9052b468225 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 22 Aug 2015 09:55:42 +0200 Subject: Use downloaded upcoming.json --- model/Upcoming.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'model/Upcoming.php') diff --git a/model/Upcoming.php b/model/Upcoming.php index 1724d0f..d737574 100644 --- a/model/Upcoming.php +++ b/model/Upcoming.php @@ -5,14 +5,14 @@ class Upcoming public function getNextEvents() { try { - $events = file_get_contents('https://c3voc.de/eventkalender/events.json?filter=upcoming'); + $events = file_get_contents('configs/upcoming.json'); $events = json_decode($events, true); return array_values($events['voc_events']); } catch(ErrorException $e) { - return null; + return array(); } } } -- cgit v1.2.3