fix for show with no end.

This commit is contained in:
Naomi 2011-02-01 18:02:35 -05:00
parent fab6881731
commit be6722af9f

View file

@ -88,7 +88,7 @@ class Show {
$start = $data['add_show_start_date']; $start = $data['add_show_start_date'];
} }
if(strtotime($start) < strtotime($endDate)) { if(strtotime($start) < strtotime($endDate) || is_null($endDate)) {
$showDay = new CcShowDays(); $showDay = new CcShowDays();
$showDay->setDbFirstShow($start); $showDay->setDbFirstShow($start);
@ -584,7 +584,7 @@ class Show {
$shows[] = $this->makeFullCalendarEvent($row, $repeatDate); $shows[] = $this->makeFullCalendarEvent($row, $repeatDate);
} }
//case for non-ending shows. //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); $shows[] = $this->makeFullCalendarEvent($row, $repeatDate);
} }
else { else {