diff --git a/user/index.php b/user/index.php
index 1d25f4228eb..08a5196821e 100644
--- a/user/index.php
+++ b/user/index.php
@@ -682,8 +682,8 @@
$row->cells[2]->text .= implode('', $links);
- if (!empty($messageselect)) {
- $row->cells[2]->text .= '
';
+ if ($bulkoperations) {
+ $row->cells[2]->text .= '
';
}
$table->data = array($row);
echo html_writer::table($table);