]> git.mjollnir.org Git - moodle.git/commitdiff
Prevent some warning when restoring site courses... MDL-10054 MDL-10118
authorstronk7 <stronk7>
Sun, 16 Sep 2007 18:34:22 +0000 (18:34 +0000)
committerstronk7 <stronk7>
Sun, 16 Sep 2007 18:34:22 +0000 (18:34 +0000)
Merged from MOODLE_18_STABLE

backup/restore_form.html

index 6a3a715625fe3f8cfe80101dc4c74bf14a0656e1..b3e679883566ae683798575aaa0deb19bf89f3a4 100644 (file)
         }
     }
 
+    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;
     }