diff --git a/enrol/authorize/enrol_form.php b/enrol/authorize/enrol_form.php index 5ca04442556..eae8a8fb118 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);