Merge branch 'MDL-51128-master' of git://github.com/junpataleta/moodle

This commit is contained in:
Dan Poltawski 2015-11-02 14:07:10 +00:00
commit 28aadc2b12

View 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;