From 0f942d149de7b155cc2a346e48e6a58fe43251da Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Mon, 6 Jun 2011 20:05:35 +0200 Subject: [PATCH] CC-2326 Edit a show (End Date problems) not clearing options array. --- airtime_mvc/application/models/Shows.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Shows.php b/airtime_mvc/application/models/Shows.php index 07a48f3f5..6bcffd096 100644 --- a/airtime_mvc/application/models/Shows.php +++ b/airtime_mvc/application/models/Shows.php @@ -1070,7 +1070,6 @@ class Show { public static function getFullCalendarEvents($start, $end, $editable=false) { $events = array(); - $options = array(); $start_range = new DateTime($start); $end_range = new DateTime($end); @@ -1081,6 +1080,8 @@ class Show { $today_timestamp = date("Y-m-d H:i:s"); foreach ($shows as $show) { + $options = array(); + //only bother calculating percent for week or day view. if(intval($days) <= 7) { $show_instance = new ShowInstance($show["instance_id"]);