From: skodak Date: Mon, 17 Jul 2006 08:39:36 +0000 (+0000) Subject: Bug #6120 - Course creation - loginproblem; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=43d774a94fe4e20665bad1299165b9ed9a50b96d;p=moodle.git Bug #6120 - Course creation - loginproblem; merged from MOODLE_16_STABLE --- diff --git a/course/edit.php b/course/edit.php index d6f412962a..8ade7096e3 100644 --- a/course/edit.php +++ b/course/edit.php @@ -145,6 +145,7 @@ $newteacher->course = $newcourseid; $newteacher->authority = 1; // First teacher is the main teacher $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)) { error("Could not add you to this new course!");