Skip to content
Permalink
Browse files

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

  • Loading branch information...
ethem
ethem committed Jan 27, 2006
1 parent c5c56ae commit d90534da0d5b16aa33c6c62780ab7d9926aacb0a
Showing with 1 addition and 5 deletions.
  1. +1 −5 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.
You can’t perform that action at this time.