]> git.mjollnir.org Git - moodle.git/commitdiff
<DIV>...</DIV> if other method available.
authorethem <ethem>
Thu, 16 Nov 2006 16:18:20 +0000 (16:18 +0000)
committerethem <ethem>
Thu, 16 Nov 2006 16:18:20 +0000 (16:18 +0000)
enrol/authorize/enrol_form.php

index 5ca0444255667f7bc2f8b5087d69a5a7fe4b2593..eae8a8fb1189e0a853a3f159498265cb860779e5 100755 (executable)
@@ -19,7 +19,9 @@ class authorize_enrol_form extends moodleform
         $renderer =& $mform->defaultRenderer();
 
         $mform->addElement('header', '', '&nbsp;&nbsp;' . get_string('paymentrequired'), '');
-        $mform->addElement('static', '', '<div align="right">' . other_method($paymentmethod) . '&nbsp;&nbsp;</div>', '');
+        if ($othermethodstr = other_method($paymentmethod)) {
+            $mform->addElement('static', '', '<div align="right">' . $othermethodstr . '&nbsp;&nbsp;</div>', '');
+        }
 
         $mform->addElement('hidden', 'id', $course->id);
         $mform->setType('id', PARAM_INT);