Avoiding a notice

This commit is contained in:
moodler
2004-08-12 07:52:44 +00:00
parent 77ec198a93
commit ffbe59b8d0
+5 -1
View File
@@ -38,7 +38,11 @@
if ($form = data_submitted()) {
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
if (empty($course)) {
check_for_restricted_user($USER->username, "$CFG->wwwroot");
} else {
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
}
$form->startdate = make_timestamp($form->startyear, $form->startmonth, $form->startday);