Bug #6120 - Course creation - loginproblem

This commit is contained in:
skodak 2006-07-17 08:38:45 +00:00
parent 63d337cf47
commit 34db6d30a0

View file

@ -145,6 +145,7 @@
$newteacher->course = $newcourseid; $newteacher->course = $newcourseid;
$newteacher->authority = 1; // First teacher is the main teacher $newteacher->authority = 1; // First teacher is the main teacher
$newteacher->editall = 1; // Course creator can edit their own course $newteacher->editall = 1; // Course creator can edit their own course
$newteacher->enrol = 'manual';// enrol the teacher too - bug #6120
if (!$newteacher->id = insert_record("user_teachers", $newteacher)) { if (!$newteacher->id = insert_record("user_teachers", $newteacher)) {
error("Could not add you to this new course!"); error("Could not add you to this new course!");