Browse files

Error message isn't shown when user clicked button without key if cou…

…rse key is set.
  • Loading branch information...
1 parent 2acc290 commit 07c48fcff638b9978ccad0185e311e9dcb5ae922 ethem committed Sep 4, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/authorize/enrol.php
View
2 enrol/authorize/enrol.php
@@ -132,7 +132,7 @@ function check_entry($form, $course)
{
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)) {

0 comments on commit 07c48fc

Please sign in to comment.