Put back call to forum_add_student in enrol_student() that Martin took out by mistake in revision 1.355

This commit is contained in:
gustav_delius 2004-10-26 19:53:48 +00:00
parent 4b5865662d
commit 2f3b54ae54

View File

@ -1482,6 +1482,9 @@ function enrol_student($userid, $courseid, $timestart=0, $timeend=0) {
return update_record('user_students', $student);
} else {
require_once("../mod/forum/lib.php");
forum_add_user($userid, $courseid);
$student->userid = $userid;
$student->course = $courseid;
$student->timestart = $timestart;