diff --git a/grade/lib.php b/grade/lib.php index 65ce1c60efd..ce6afe69d0f 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -296,6 +296,8 @@ function print_graded_users_selector($course, $actionpage, $userid=0, $groupid=0 } function grade_get_graded_users_select($report, $course, $userid, $groupid, $includeall) { + global $USER; + if (is_null($userid)) { $userid = $USER->id; }