CC-2326 Can't edit a show more than once (End Date problems)

keep adding the 1 day interval here
This commit is contained in:
Naomi 2011-05-26 16:27:50 -04:00
parent 8d59c18bef
commit 81ee30105d
1 changed files with 8 additions and 8 deletions

View File

@ -626,16 +626,16 @@ class Show {
$endDate = NULL; $endDate = NULL;
} }
else if ($data['add_show_repeats']) { else if ($data['add_show_repeats']) {
//$sql = "SELECT date '{$data['add_show_end_date']}' + INTERVAL '1 day' "; $sql = "SELECT date '{$data['add_show_end_date']}' + INTERVAL '1 day' ";
//$r = $con->query($sql); $r = $con->query($sql);
//$endDate = $r->fetchColumn(0); $endDate = $r->fetchColumn(0);
$endDate = $data['add_show_end_date']; //$endDate = $data['add_show_end_date'];
} }
else { else {
//$sql = "SELECT date '{$data['add_show_start_date']}' + INTERVAL '1 day' "; $sql = "SELECT date '{$data['add_show_start_date']}' + INTERVAL '1 day' ";
//$r = $con->query($sql); $r = $con->query($sql);
//$endDate = $r->fetchColumn(0); $endDate = $r->fetchColumn(0);
$endDate = $data['add_show_start_date']; //$endDate = $data['add_show_start_date'];
} }
//only want the day of the week from the start date. //only want the day of the week from the start date.