From be6722af9f0f4edd5e0e815f4f51ccaf488331bb Mon Sep 17 00:00:00 2001 From: Naomi Date: Tue, 1 Feb 2011 18:02:35 -0500 Subject: [PATCH] fix for show with no end. --- application/models/Shows.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Shows.php b/application/models/Shows.php index 6f854bfae..d5da2ac4b 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -88,7 +88,7 @@ class Show { $start = $data['add_show_start_date']; } - if(strtotime($start) < strtotime($endDate)) { + if(strtotime($start) < strtotime($endDate) || is_null($endDate)) { $showDay = new CcShowDays(); $showDay->setDbFirstShow($start); @@ -584,7 +584,7 @@ class Show { $shows[] = $this->makeFullCalendarEvent($row, $repeatDate); } //case for non-ending shows. - else if(is_null($show_end_epoch) && $repeat_epoch < $end_epoch) { + else if(!isset($show_end_epoch) && $repeat_epoch < $end_epoch) { $shows[] = $this->makeFullCalendarEvent($row, $repeatDate); } else {