Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Which form is submitted? Internal or authorize?

This eliminates undefined form->property notices when user submitted internal form.
  • Loading branch information...
commit 00a354a2da2638f884ea7d8f328f5fa818c863a0 1 parent d90534d
authored January 27, 2006
2  enrol/authorize/enrol.html
@@ -108,7 +108,7 @@
108 108
   <?php if (!empty($this->ccerrors['cczip'])) { formerr($this->ccerrors['cczip']); } ?></td>
109 109
 </tr>
110 110
 </table>
111  
-<input type="submit" value="<?php print_string("sendpaymentbutton", "enrol_authorize") ?>">
  111
+<input type="submit" name="ccsubmit" value="<?php print_string("sendpaymentbutton", "enrol_authorize") ?>">
112 112
 </form>
113 113
 
114 114
 </div>
2  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  
-        } elseif ($this->validate_enrol_form($form)) {
  87
+        } elseif ((!empty($form->ccsubmit)) && $this->validate_enrol_form($form)) {
88 88
             $this->cc_submit($form, $course);
89 89
         }
90 90
     }

0 notes on commit 00a354a

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