diff --git a/mod/scorm/report/graphs/graph.php b/mod/scorm/report/graphs/graph.php index 59a95ece848..3d9b7f44032 100644 --- a/mod/scorm/report/graphs/graph.php +++ b/mod/scorm/report/graphs/graph.php @@ -52,7 +52,7 @@ if (empty($currentgroup)) { } else { // All users who can attempt scoes and who are in the currently selected group. $groupstudents = get_users_by_capability($contextmodule, 'mod/scorm:savetrack', 'u.id', '', '', '', $currentgroup, '', false); - $allowedlist = empty($students) ? array() : array_keys($groupstudents); + $allowedlist = empty($groupstudents) ? array() : array_keys($groupstudents); } $params = array();