Skip to content

Commit

Permalink
SCORM MDL-25985 wrong key to check $usertracks array - thanks to Vale…
Browse files Browse the repository at this point in the history
…rian for report/fix
  • Loading branch information
danmarsden committed Nov 9, 2010
1 parent 3dfe69c commit 79ef247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/datamodels/scorm_12lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function scorm_eval_prerequisites($prerequisites, $usertracks) {
$count = 0;
foreach ($set as $setelement) {
if (isset($usertracks[$setelement]) &&
($usertracks[$setelement]->status == 'completed' || $usertracks[$element]->status == 'passed')) {
($usertracks[$setelement]->status == 'completed' || $usertracks[$setelement]->status == 'passed')) {
$count++;
}
}
Expand Down

0 comments on commit 79ef247

Please sign in to comment.