Skip to content

Commit

Permalink
MDL-50781 user: do not print useless table cell
Browse files Browse the repository at this point in the history
Thanks to Maurício Severo da Silva for the patch
  • Loading branch information
danpoltawski committed Nov 3, 2015
1 parent 821ab27 commit 24c3db9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion user/index.php
Expand Up @@ -224,7 +224,9 @@
$controlstable->data[0]->cells[] = $OUTPUT->render($select);
}

$controlstable->data[0]->cells[] = groups_print_course_menu($course, $baseurl->out(), true);
if ($groupmenu = groups_print_course_menu($course, $baseurl->out(), true)) {
$controlstable->data[0]->cells[] = $groupmenu;
}

if (!isset($hiddenfields['lastaccess'])) {
// Get minimum lastaccess for this course and display a dropbox to filter by lastaccess going back this far.
Expand Down

0 comments on commit 24c3db9

Please sign in to comment.