Browse files

Fixed bug with creation of new weeks in weekly view

  • Loading branch information...
1 parent 57f14b3 commit ad14a10e4b69f5f180cb6cccf8ef607a87ec2087 martin committed Aug 15, 2002
Showing with 4 additions and 2 deletions.
  1. +4 −2 course/weeks.php
View
6 course/weeks.php
@@ -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)) {

0 comments on commit ad14a10

Please sign in to comment.