From 1bdf6d2677e49bbfbc7fe6f77923d42d855dd9e7 Mon Sep 17 00:00:00 2001 From: ethem Date: Thu, 16 Nov 2006 16:18:20 +0000 Subject: [PATCH]
...
if other method available. --- enrol/authorize/enrol_form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/enrol/authorize/enrol_form.php b/enrol/authorize/enrol_form.php index 5ca0444255..eae8a8fb11 100755 --- a/enrol/authorize/enrol_form.php +++ b/enrol/authorize/enrol_form.php @@ -19,7 +19,9 @@ class authorize_enrol_form extends moodleform $renderer =& $mform->defaultRenderer(); $mform->addElement('header', '', '  ' . get_string('paymentrequired'), ''); - $mform->addElement('static', '', '
' . other_method($paymentmethod) . '  
', ''); + if ($othermethodstr = other_method($paymentmethod)) { + $mform->addElement('static', '', '
' . $othermethodstr . '  
', ''); + } $mform->addElement('hidden', 'id', $course->id); $mform->setType('id', PARAM_INT); -- 2.39.5