NOBUG fixed notice - when creating missing sections
authorEloy Lafuente <stronk7@moodle.org>
Wed, 21 Jul 2010 23:27:13 +0000 (23:27 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Wed, 21 Jul 2010 23:27:13 +0000 (23:27 +0000)
course/format/topics/format.php
course/format/weeks/format.php

index 8ba44c6..74088c3 100644 (file)
@@ -143,6 +143,7 @@ while ($section <= $course->numsections) {
         $thissection = new stdClass;
         $thissection->course  = $course->id;   // Create a new section structure
         $thissection->section = $section;
+        $thissection->name    = null;
         $thissection->summary  = '';
         $thissection->summaryformat = FORMAT_HTML;
         $thissection->visible  = 1;
index f68247f..55cbd2f 100644 (file)
             unset($thissection);
             $thissection->course = $course->id;   // Create a new week structure
             $thissection->section = $section;
+            $thissection->name    = null;
             $thissection->summary = '';
             $thissection->summaryformat = FORMAT_HTML;
             $thissection->visible = 1;