Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…rse key is set.
  • Loading branch information...
commit 07c48fcff638b9978ccad0185e311e9dcb5ae922 1 parent 2acc290
ethem authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/authorize/enrol.php
2  enrol/authorize/enrol.php
View
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.