dirroot/mod/assignment/lib.php"); if (empty($form->name)) { $form->name = ""; } if (empty($form->description)) { $form->description = ""; } if (empty($form->format)) { $form->format = ""; } if (empty($form->assignmenttype)) { $form->assignmenttype = "uploadsingle"; } if (!isset($form->grade)) { $form->grade = 100; } if (!isset($form->timedue)) { $form->timedue = time()+7*24*3600; } if (!isset($form->timeavailable)) { $form->timeavailable = time(); } if (!isset($form->preventlate)) { $form->preventlate = 0; } if (empty($form->maxbytes)) { $form->maxbytes = $CFG->assignment_maxbytes; } ?>