diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 02587b07ecb..04bd1f38691 100755 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -419,7 +419,7 @@ function scorm_cron () { } $timenow = time(); - $updatetime = usergetmidnight($timenow, $sitetimezone) + ($CFG->scorm_updatetime * 3600); + $updatetime = usergetmidnight($timenow, $sitetimezone) + ($CFG->scorm_updatetimelast * 3600); if ($CFG->scorm_updatetimelast < $updatetime and $timenow > $updatetime) {