Browse files

<DIV>...</DIV> if other method available.

  • Loading branch information...
1 parent 4e15f4b commit 1bdf6d2677e49bbfbc7fe6f77923d42d855dd9e7 ethem committed Nov 16, 2006
Showing with 3 additions and 1 deletion.
  1. +3 −1 enrol/authorize/enrol_form.php
View
4 enrol/authorize/enrol_form.php
@@ -19,7 +19,9 @@ function definition()
$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);

0 comments on commit 1bdf6d2

Please sign in to comment.