Permalink
Browse files

MDL-50781 user: do not print useless table cell

Thanks to Maurício Severo da Silva for the patch
  • Loading branch information...
danpoltawski committed Nov 3, 2015
1 parent c12979c commit efb26ed01111416016ad004b203b0b6df0437547
Showing with 3 additions and 1 deletion.
  1. +3 −1 user/index.php
View
@@ -230,7 +230,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.

0 comments on commit efb26ed

Please sign in to comment.