From: ethem Date: Mon, 4 Sep 2006 07:09:44 +0000 (+0000) Subject: Error message isn't shown when user clicked button without key if course key is set. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=07c48fcff638b9978ccad0185e311e9dcb5ae922;p=moodle.git Error message isn't shown when user clicked button without key if course key is set. --- diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index a3a6a8b63a..94cec73dea 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -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)) {