From 07c48fcff638b9978ccad0185e311e9dcb5ae922 Mon Sep 17 00:00:00 2001 From: ethem Date: Mon, 4 Sep 2006 07:09:44 +0000 Subject: [PATCH] Error message isn't shown when user clicked button without key if course key is set. --- enrol/authorize/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index a3a6a8b63a3..94cec73dea7 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)) {