From: piers Date: Mon, 2 Mar 2009 23:16:47 +0000 (+0000) Subject: MDL-18412 - fixed incorrect config var name. thanks Anthony. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8f54becce72700602bfdb0f978d76dfd1e757216;p=moodle.git MDL-18412 - fixed incorrect config var name. thanks Anthony. --- diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 02587b07ec..04bd1f3869 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) {