Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move $this->validate_enrol_form() to check_entry().

  • Loading branch information...
commit d90534da0d5b16aa33c6c62780ab7d9926aacb0a 1 parent c5c56ae
ethem authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 enrol/authorize/enrol.php
View
6 enrol/authorize/enrol.php
@@ -84,7 +84,7 @@ function print_entry($course)
function check_entry($form, $course) {
if ((!empty($form->password)) || isguest() || $this->zero_cost($course)) {
parent::check_entry($form, $course);
- } else {
+ } elseif ($this->validate_enrol_form($form)) {
$this->cc_submit($form, $course);
}
}
@@ -103,10 +103,6 @@ function cc_submit($form, $course)
global $CFG, $USER, $SESSION;
require_once $CFG->dirroot.'/enrol/authorize/action.php';
- if (!$this->validate_enrol_form($form)) {
- return;
- }
-
$this->prevent_double_paid($course);
$useripno = getremoteaddr();

0 comments on commit d90534d

Please sign in to comment.
Something went wrong with that request. Please try again.