From ffc7d876e85173c72cee62d54071c1b81634d4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Mon, 14 Oct 2024 16:07:23 +0200 Subject: [PATCH] MDL-83457 mod_feedback: Fix 'feedback_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. --- mod/feedback/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/feedback/lib.php b/mod/feedback/lib.php index de615fa79ff41..f56aae922cadc 100644 --- a/mod/feedback/lib.php +++ b/mod/feedback/lib.php @@ -964,7 +964,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);