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 fb29022 commit 9b67f1b9dbbf71c5ce33ea710981eaefa49afdd5
Showing with 3 additions and 1 deletion.
  1. +3 −1 user/index.php
View
@@ -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.

0 comments on commit 9b67f1b

Please sign in to comment.