diff --git a/enrol/authorize/config_form.php b/enrol/authorize/config_form.php index 5df5b6b3d18..07535f5f851 100755 --- a/enrol/authorize/config_form.php +++ b/enrol/authorize/config_form.php @@ -158,8 +158,7 @@ if (!isset($frm->acceptechecktypes)) { echo(""); } elseif ($key == AN_METHOD_ECHECK) { - $checkbox = html_writer::checkbox('enrol_authorize', AN_METHOD_ECHECK, in_array(AN_METHOD_ECHECK, $paymentmethodsenabled), get_string('method'.AN_METHOD_ECHECK)); - echo $OUTPUT->checkbox($checkbox, 'acceptmethods[]'); + echo html_writer::checkbox('acceptmethods[]', AN_METHOD_ECHECK, in_array(AN_METHOD_ECHECK, $paymentmethodsenabled), get_string('method'.AN_METHOD_ECHECK, 'enrol_authorize')); echo("