mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
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:
parent
fc29adddf9
commit
20c6be9350
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue