mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-50781 user: do not print useless table cell
Thanks to Maurício Severo da Silva for the patch
This commit is contained in:
parent
821ab27c19
commit
24c3db91a4
@ -224,7 +224,9 @@ if ($mycourses = enrol_get_my_courses()) {
|
||||
$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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user