mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Error message isn't shown when user clicked button without key if course key is set.
This commit is contained in:
parent
2acc290c17
commit
07c48fcff6
@ -132,7 +132,7 @@ class enrolment_plugin_authorize
|
||||
{
|
||||
global $CFG;
|
||||
|
||||
if (zero_cost($course) || (!empty($course->password) && !empty($form->password) && $form->enrol == 'manual')) {
|
||||
if (zero_cost($course) || (!empty($course->password) && !empty($form->enrol) && $form->enrol == 'manual')) {
|
||||
$manual = enrolment_factory::factory('manual');
|
||||
$manual->check_entry($form, $course);
|
||||
if (!empty($manual->errormsg)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user