Prevent some warning when restoring site courses... MDL-10054 MDL-10118
Merged from MOODLE_18_STABLE
This commit is contained in:
@@ -103,6 +103,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($course_header->category->id)) {
|
||||
$course_header->category->id = 0;
|
||||
}
|
||||
|
||||
if(!isset($form1->startdate)) {
|
||||
$form1->startdate = $course_header->course_startdate; //$course_header->course_startdate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user