Error message isn't shown when user clicked button without key if course key is set.

This commit is contained in:
ethem 2006-09-04 07:09:44 +00:00
parent 2acc290c17
commit 07c48fcff6

View File

@ -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)) {