Remove +}

I like this format:
{
}

not {
}
This commit is contained in:
ethem 2006-09-02 15:05:10 +00:00
parent 134c20fb14
commit be59e14b9e

View File

@ -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.