From 6f185d094b44e25e52f0b901502190934e74eb1b Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 29 Sep 2015 11:49:53 -0400 Subject: [PATCH] SAAS-1095: Unknown schedule type: array --- airtime_mvc/application/models/Schedule.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index f6967d254..72acb6047 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -1035,7 +1035,11 @@ SQL; self::createStreamScheduleEvent($data, $item, $media_id, $uri); } else { - throw new Exception("Unknown schedule type: ".print_r($item, true)); + //throw new Exception("Unknown schedule type: ".print_r($item, true)); + //It's currently possible (and normal) to get cc_schedule rows without + //a file_id or stream_id. If you're using linked shows, placeholder rows can be put + //in the schedule when you cancel a track or delete stuff, so we should not throw an exception + //here and instead just ignore it. } }