Skip to content

Commit

Permalink
MDL-83457 mod_feedback: Fix 'feedback_get_incomplete_users' early ret…
Browse files Browse the repository at this point in the history
…urn 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.
  • Loading branch information
roland04 committed Oct 14, 2024
1 parent 28b69f5 commit f5aa997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/feedback/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ function feedback_get_incomplete_users(cm_info $cm,
$group,
'',
true)) {
return false;
return [];
}
// Filter users that are not in the correct group/grouping.
$info = new \core_availability\info_module($cm);
Expand Down

0 comments on commit f5aa997

Please sign in to comment.