# HG changeset patch # User Nathan Phillip Brink # Date 2011-03-28 22:56:56 # Node ID 449e74b144205d954517aba3e897ebe46d5fbe22 # Parent ca3f2109a8b9f36c3f745089e02a3dd650392f8e Fix invalid attempt to read parent_schedule_id when there is no parent_schedule_id upon clicking `Fix errors' button. diff --git a/input.php b/input.php --- a/input.php +++ b/input.php @@ -47,7 +47,8 @@ elseif (!empty($_REQUEST['e'])) * data. */ $errors_fix = TRUE; - $parent_schedule_id = (int)$_POST['postData']['parent_schedule_id']; + if (!empty($_POST['postData']['parent_schedule_id'])) + $parent_schedule_id = (int)$_POST['postData']['parent_schedule_id']; } $my_hc = 'var slate_permutate_example_course_id = ' . json_encode(school_example_course_id($inputPage->get_school())) . ';