MDL-84112 bigbluebuttonbn: Added user output only if bbactivity is set

This commit is contained in:
Anders Rasmussen
2025-03-18 11:30:07 +01:00
parent b3931cdb95
commit ec1e8dfb18
@@ -219,8 +219,15 @@ class roles {
];
$data['user'] = [
'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
'children' => self::get_users_array($context, $bbactivity),
'children' => [],
];
if (empty($bbactivity)) {
return $data;
}
$data['user']['children'] = self::get_users_array($context, $bbactivity);
return $data;
}