From f499d4d53a31011d523d8ebaf8c4f7f0fcea43b7 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 11 Dec 2016 20:36:46 +0100 Subject: repair schedule view --- model/Schedule.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'model') diff --git a/model/Schedule.php b/model/Schedule.php index 0b789f2..eb9fe05 100644 --- a/model/Schedule.php +++ b/model/Schedule.php @@ -54,16 +54,9 @@ class Schedule public function getSchedule() { // download schedule-xml - try - { - $schedule = $this->fetchSchedule(); - } - catch(Exception $e) - { - return array('_error' => (string)$e); - } + $schedule = $this->fetchSchedule(); - $mapping = $this->getConference()->getScheduleToRoomSlugMapping(); + $mapping = $this->getScheduleToRoomSlugMapping(); $program = array(); // re-calculate day-ends @@ -257,7 +250,7 @@ class Schedule public function getDurationSum() { $sum = 0; - $schedule = $this->getConference()->getSchedule(); + $schedule = $this->getSchedule(); foreach(reset($schedule) as $event) $sum += $event['duration']; -- cgit v1.2.3