Permalink
Browse files

SCORM MDL-26063 incorrect context used - thanks to Matteo Scaramuccia…

… for fix
  • Loading branch information...
1 parent 17e0390 commit c371e39316e984692a2fe5ae09e8be509863530e @danmarsden danmarsden committed Jan 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/report.php
@@ -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();

0 comments on commit c371e39

Please sign in to comment.