mirror of
https://github.com/moodle/moodle.git
synced 2025-05-03 06:48:46 +02:00
Remove +}
I like this format: { } not { }
This commit is contained in:
parent
134c20fb14
commit
be59e14b9e
@ -132,8 +132,7 @@ class enrolment_plugin_authorize
|
||||
{
|
||||
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)) {
|
||||
@ -141,16 +140,16 @@ class enrolment_plugin_authorize
|
||||
}
|
||||
}
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user