mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Remove +}
I like this format: { } not { }
This commit is contained in:
parent
134c20fb14
commit
be59e14b9e
1 changed files with 7 additions and 8 deletions
|
@ -132,8 +132,7 @@ class enrolment_plugin_authorize
|
||||||
{
|
{
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
if (zero_cost($course) ||
|
if (zero_cost($course) || (!empty($course->password) && !empty($form->password))) {
|
||||||
(!empty($course->password) and !empty($form->password))) {
|
|
||||||
$manual = enrolment_factory::factory('manual');
|
$manual = enrolment_factory::factory('manual');
|
||||||
$manual->check_entry($form, $course);
|
$manual->check_entry($form, $course);
|
||||||
if (!empty($manual->errormsg)) {
|
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())) {
|
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)) {
|
if ($form->paymentmethod == AN_METHOD_CC && validate_cc_form($form, $this->authorizeerrors)) {
|
||||||
$this->cc_submit($form, $course);
|
$this->cc_submit($form, $course);
|
||||||
}
|
}
|
||||||
elseif($form->paymentmethod == AN_METHOD_ECHECK && validate_echeck_form($form, $this->authorizeerrors)) {
|
elseif($form->paymentmethod == AN_METHOD_ECHECK && validate_echeck_form($form, $this->authorizeerrors)) {
|
||||||
$this->echeck_submit($form, $course);
|
$this->echeck_submit($form, $course);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Credit card number mode.
|
* Credit card number mode.
|
||||||
* Send to authorize.net.
|
* Send to authorize.net.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue