Skip to content

Commit

Permalink
SCORM MDL-26063 incorrect context used - thanks to Matteo Scaramuccia…
Browse files Browse the repository at this point in the history
… for fix
  • Loading branch information
danmarsden committed Jan 19, 2011
1 parent 17e0390 commit c371e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
}
} else {
// all users who can attempt scoes and who are in the currently selected group
if (!$groupstudents = get_users_by_capability($context, 'mod/scorm:savetrack','','','','',$currentgroup,'',false)){
if (!$groupstudents = get_users_by_capability($contextmodule, 'mod/scorm:savetrack','','','','',$currentgroup,'',false)){
echo $OUTPUT->notification(get_string('nostudentsingroup'));
$nostudents = true;
$groupstudents = array();
Expand Down

0 comments on commit c371e39

Please sign in to comment.