mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixed bug with creation of new weeks in weekly view
This commit is contained in:
parent
57f14b3443
commit
ad14a10e4b
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user