From be59e14b9e3f784e59f7933d291582983d87ac46 Mon Sep 17 00:00:00 2001 From: ethem Date: Sat, 2 Sep 2006 15:05:10 +0000 Subject: [PATCH] Remove +} I like this format: { } not { } --- enrol/authorize/enrol.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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. -- 2.39.5