Merge branch 'MDL-51128-master' of git://github.com/junpataleta/moodle
authorDan Poltawski <dan@moodle.com>
Mon, 2 Nov 2015 14:07:10 +0000 (14:07 +0000)
committerDan Poltawski <dan@moodle.com>
Mon, 2 Nov 2015 14:07:10 +0000 (14:07 +0000)
admin/tool/generator/classes/course_backend.php

index 2c2ca85..0219ebe 100644 (file)
@@ -253,7 +253,8 @@ class tool_generator_course_backend extends tool_generator_backend {
         $courserecord = array(
             'shortname' => $this->shortname,
             'fullname' => $this->fullname,
-            'numsections' => self::$paramsections[$this->size]
+            'numsections' => self::$paramsections[$this->size],
+            'startdate' => usergetmidnight(time())
         );
         if (strlen($this->summary) > 0) {
             $courserecord['summary'] = $this->summary;