Skip to content
Browse files

Remove +}

I like this format:
{
}

not {
}
  • Loading branch information...
1 parent 134c20f commit be59e14b9e3f784e59f7933d291582983d87ac46 ethem committed Sep 2, 2006
Showing with 7 additions and 8 deletions.
  1. +7 −8 enrol/authorize/enrol.php
View
15 enrol/authorize/enrol.php
@@ -132,25 +132,24 @@ function check_entry($form, $course)
{
global $CFG;
- if (zero_cost($course) ||
- (!empty($course->password) and !empty($form->password))) {
+ if (zero_cost($course) || (!empty($course->password) && !empty($form->password))) {
$manual = enrolment_factory::factory('manual');
$manual->check_entry($form, $course);
if (!empty($manual->errormsg)) {
$this->errormsg = $manual->errormsg;
}
}
elseif (!empty($form->paymentmethod) && in_array($form->paymentmethod, get_list_of_payment_methods())) {
- if ($form->paymentmethod == AN_METHOD_CC && validate_cc_form($form, $this->authorizeerrors)) {
- $this->cc_submit($form, $course);
- }
- elseif($form->paymentmethod == AN_METHOD_ECHECK && validate_echeck_form($form, $this->authorizeerrors)) {
- $this->echeck_submit($form, $course);
- }
+ if ($form->paymentmethod == AN_METHOD_CC && validate_cc_form($form, $this->authorizeerrors)) {
+ $this->cc_submit($form, $course);
+ }
+ elseif($form->paymentmethod == AN_METHOD_ECHECK && validate_echeck_form($form, $this->authorizeerrors)) {
+ $this->echeck_submit($form, $course);
}
}
}
+
/**
* Credit card number mode.
* Send to authorize.net.

0 comments on commit be59e14

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