diff --git a/user/index.php b/user/index.php
index 3331c1584df..ce1889313c6 100644
--- a/user/index.php
+++ b/user/index.php
@@ -387,14 +387,12 @@ if ($bulkoperations) {
'data-toggle' => 'action',
'disabled' => empty($selectall)
);
- echo html_writer::tag('div', html_writer::tag('label', get_string("withselectedusers"),
- array('for' => 'formactionid', 'class' => 'col-form-label d-inline')) .
- html_writer::select($displaylist, 'formaction', '', array('' => 'choosedots'), $selectactionparams));
+ $label = html_writer::tag('label', get_string("withselectedusers"),
+ ['for' => 'formactionid', 'class' => 'col-form-label d-inline']);
+ $select = html_writer::select($displaylist, 'formaction', '', ['' => 'choosedots'], $selectactionparams);
+ echo html_writer::tag('div', $label . $select);
- echo '';
- echo '';
+ echo '';
echo '';
echo '';