]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18412 - fixed incorrect config var name. thanks Anthony.
authorpiers <piers>
Mon, 2 Mar 2009 23:16:47 +0000 (23:16 +0000)
committerpiers <piers>
Mon, 2 Mar 2009 23:16:47 +0000 (23:16 +0000)
mod/scorm/lib.php

index 02587b07ecbd283b43bd06a558738231b981e9ec..04bd1f38691bc3c3553a5e4933e9e0d7d94291f8 100755 (executable)
@@ -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) {