From: ethem Date: Thu, 16 Nov 2006 16:18:20 +0000 (+0000) Subject:
...
if other method available. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1bdf6d2677e49bbfbc7fe6f77923d42d855dd9e7;p=moodle.git
...
if other method available. --- 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);