MDL-83457 mod_feedback: Fix get_incomplete_users early return type

Fix 'feedback_get_incomplete_users' early return when there are no users with
the 'mod/feedback:complete' capability from 'false' to an empty array. That
will follow the function signature.
This commit is contained in:
Mikel Martín 2024-10-14 16:07:23 +02:00
parent fc29adddf9
commit 20c6be9350

View file

@ -964,7 +964,7 @@ function feedback_get_incomplete_users(cm_info $cm,
$group, $group,
'', '',
true)) { true)) {
return false; return [];
} }
// Filter users that are not in the correct group/grouping. // Filter users that are not in the correct group/grouping.
$info = new \core_availability\info_module($cm); $info = new \core_availability\info_module($cm);