Fixed bug with creation of new weeks in weekly view

This commit is contained in:
martin 2002-08-15 02:58:06 +00:00
parent 57f14b3443
commit ad14a10e4b

View File

@ -141,9 +141,11 @@
if (! $thisweek = $sections[$week]) {
$thisweek->course = $course->id; // Create a new week structure
$thisweek->week = $week;
$thisweek->section = $week;
$thisweek->summary = "";
$thisweek->id = insert_record("course_sections", $thisweek);
if (!$thisweek->id = insert_record("course_sections", $thisweek)) {
notify("Error inserting new week!");
}
}
if (isediting($course->id)) {