Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug with creation of new weeks in weekly view

  • Loading branch information...
commit ad14a10e4b69f5f180cb6cccf8ef607a87ec2087 1 parent 57f14b3
martin authored
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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.