Prevent some warning when restoring site courses... MDL-10054 MDL-10118

Merged from MOODLE_18_STABLE
This commit is contained in:
stronk7 2007-09-16 18:34:22 +00:00
parent bac43d633c
commit 111e12615b

View File

@ -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;
}