Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit d90534da0d5b16aa33c6c62780ab7d9926aacb0a 1 parent c5c56ae
authored January 27, 2006

Showing 1 changed file with 1 addition and 5 deletions. Show diff stats Hide diff stats

  1. 6  enrol/authorize/enrol.php
6  enrol/authorize/enrol.php
@@ -84,7 +84,7 @@ function print_entry($course)
84 84
     function check_entry($form, $course) {
85 85
         if ((!empty($form->password)) || isguest() || $this->zero_cost($course)) {
86 86
             parent::check_entry($form, $course);
87  
-        } else {
  87
+        } elseif ($this->validate_enrol_form($form)) {
88 88
             $this->cc_submit($form, $course);
89 89
         }
90 90
     }
@@ -103,10 +103,6 @@ function cc_submit($form, $course)
103 103
         global $CFG, $USER, $SESSION;
104 104
         require_once $CFG->dirroot.'/enrol/authorize/action.php';
105 105
 
106  
-        if (!$this->validate_enrol_form($form)) {
107  
-            return;
108  
-        }
109  
-
110 106
         $this->prevent_double_paid($course);
111 107
 
112 108
         $useripno = getremoteaddr();

0 notes on commit d90534d

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