aboutsummaryrefslogtreecommitdiff
path: root/model/Upcoming.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--model/Upcoming.php4
1 files changed, 2 insertions, 2 deletions
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();
}
}
}