From: ethem Date: Sat, 2 Sep 2006 15:05:10 +0000 (+0000) Subject: Remove +} X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=be59e14b9e3f784e59f7933d291582983d87ac46;p=moodle.git Remove +} I like this format: { } not { } --- diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index d45bc78743..d7986156f5 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -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.