diff --git a/airtime_mvc/application/models/Shows.php b/airtime_mvc/application/models/Shows.php index e2911129e..c83463b44 100644 --- a/airtime_mvc/application/models/Shows.php +++ b/airtime_mvc/application/models/Shows.php @@ -626,16 +626,16 @@ class Show { $endDate = NULL; } else if ($data['add_show_repeats']) { - //$sql = "SELECT date '{$data['add_show_end_date']}' + INTERVAL '1 day' "; - //$r = $con->query($sql); - //$endDate = $r->fetchColumn(0); - $endDate = $data['add_show_end_date']; + $sql = "SELECT date '{$data['add_show_end_date']}' + INTERVAL '1 day' "; + $r = $con->query($sql); + $endDate = $r->fetchColumn(0); + //$endDate = $data['add_show_end_date']; } else { - //$sql = "SELECT date '{$data['add_show_start_date']}' + INTERVAL '1 day' "; - //$r = $con->query($sql); - //$endDate = $r->fetchColumn(0); - $endDate = $data['add_show_start_date']; + $sql = "SELECT date '{$data['add_show_start_date']}' + INTERVAL '1 day' "; + $r = $con->query($sql); + $endDate = $r->fetchColumn(0); + //$endDate = $data['add_show_start_date']; } //only want the day of the week from the start date.