mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Bug fixes
This commit is contained in:
parent
70beecd4e7
commit
631cba6402
@ -86,7 +86,7 @@
|
||||
die;
|
||||
}
|
||||
|
||||
if (!$course = get_record('user', 'id', $data->courseid)) { // Check that course exists
|
||||
if (!$course = get_record('course', 'id', $data->courseid)) { // Check that course exists
|
||||
email_paypal_error_to_admin("Course $data->courseid doesn't exist", $data);;
|
||||
die;
|
||||
}
|
||||
@ -119,7 +119,7 @@
|
||||
|
||||
if (!empty($CFG->enrol_paypalmailstudents)) {
|
||||
$a->coursename = "$course->fullname";
|
||||
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$USER->id";
|
||||
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id";
|
||||
email_to_user($user, $teacher, get_string("enrolmentnew"), get_string('welcometocoursetext', '', $a));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user