1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

Merge branch 'MDL-67959-master-2' of git://github.com/junpataleta/moodle

This commit is contained in:
Sara Arjona 2021-02-03 10:50:29 +01:00
commit 6d0b97a176

@ -165,13 +165,11 @@ class author extends exporter {
$groups = array_map(function($group) use ($urlfactory, $context, $output) {
$imageurl = null;
$groupurl = null;
if (!$group->hidepicture) {
$imageurl = get_group_picture_url($group, $group->courseid, true);
if (empty($imageurl)) {
// Get a generic group image URL.
$imageurl = $output->image_url('g/g1');
}
}
if (course_can_view_participants($context)) {
$groupurl = $urlfactory->get_author_group_url($group);
}