Merge branch 'cc-2326-edit-show-end-date-problems' into 1.8.2

This commit is contained in:
Naomi Aro 2011-06-06 20:06:24 +02:00
commit c8219e3b97

View file

@ -1155,7 +1155,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);
@ -1166,6 +1165,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"]);