Browse files

SCORM MDL-25085 fix typo in $usertracks array - thanks to Valerian fo…

…r report/fix
  • Loading branch information...
1 parent e548b53 commit 57512f8b54be0d7ad6fe8a932eec8ff1ab58ddf0 @danmarsden danmarsden committed Nov 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/datamodels/scorm_12lib.php
View
2 mod/scorm/datamodels/scorm_12lib.php
@@ -59,7 +59,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++;
}
}

0 comments on commit 57512f8

Please sign in to comment.