mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
Prevent some warning when restoring site courses... MDL-10054 MDL-10118
Merged from MOODLE_18_STABLE
This commit is contained in:
parent
bac43d633c
commit
111e12615b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user