diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 5f906948902..c8d581f765e 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -3217,7 +3217,7 @@ EOD; 'size' => 13, 'tabindex' => -1, 'id' => 'id_q_' . $id, 'class' => 'form-control'); $contents = html_writer::tag('label', get_string('enteryoursearchquery', 'search'), - array('for' => 'id_q_' . $id, 'class' => 'accesshide')) . html_writer::tag('input', '', $inputattrs); + array('for' => 'id_q_' . $id, 'class' => 'accesshide')) . html_writer::empty_tag('input', $inputattrs); if ($this->page->context && $this->page->context->contextlevel !== CONTEXT_SYSTEM) { $contents .= html_writer::empty_tag('input', ['type' => 'hidden', 'name' => 'context', 'value' => $this->page->context->id]);