diff --git a/input.php b/input.php --- a/input.php +++ b/input.php @@ -31,11 +31,12 @@ require_once('inc' . DIRECTORY_SEPARATOR $sch = FALSE; $school = $inputPage->get_school(); +$parent_schedule_id = NULL; if (isset($_REQUEST['s'])) { $schedule_store = schedule_store_init(); - $schedule_id = (int)$_REQUEST['s']; - $sch = schedule_store_retrieve($schedule_store, $schedule_id); + $parent_schedule_id = (int)$_REQUEST['s']; + $sch = schedule_store_retrieve($schedule_store, $parent_schedule_id); } $my_hc = 'var slate_permutate_example_course_id = \'' . str_replace('\'', '\\\'', school_example_course_id($inputPage->get_school())) . '\'; @@ -135,7 +136,10 @@ if (!empty($_REQUEST['selectsemester']))