Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… for fix
  • Loading branch information...
commit c371e39316e984692a2fe5ae09e8be509863530e 1 parent 17e0390
@danmarsden danmarsden authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/scorm/report.php
View
2  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();
Please sign in to comment.
Something went wrong with that request. Please try again.