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
+2 -4
View File
@@ -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);
}