Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug with creation of new weeks in weekly view
  • Loading branch information
martin committed Aug 15, 2002
1 parent 57f14b3 commit ad14a10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions course/weeks.php
Expand Up @@ -141,9 +141,11 @@


if (! $thisweek = $sections[$week]) { if (! $thisweek = $sections[$week]) {
$thisweek->course = $course->id; // Create a new week structure $thisweek->course = $course->id; // Create a new week structure
$thisweek->week = $week; $thisweek->section = $week;
$thisweek->summary = ""; $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)) { if (isediting($course->id)) {
Expand Down

0 comments on commit ad14a10

Please sign in to comment.