diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/Schedule.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/model/Schedule.php b/model/Schedule.php index e6aef7c..0eabc73 100644 --- a/model/Schedule.php +++ b/model/Schedule.php @@ -37,7 +37,13 @@ class Schedule extends ModelBase return $schedule; // download schedule-xml - $schedule = $this->fetchSchedule(); + try { + $schedule = $this->fetchSchedule(); + } + catch(ErrorException $e) + { + return array(); + } $mapping = $this->getScheduleToRoomSlugMapping(); $program = array(); |