SCORM MDL-21551 fix calculation for when to run auto update everyday - thanks to Phillip Franks for the report/fix

This commit is contained in:
Dan Marsden
2010-06-24 08:06:04 +00:00
parent 2418d71ec4
commit c5b3ba6a53
+1 -1
View File
@@ -471,7 +471,7 @@ function scorm_cron () {
}
$timenow = time();
$updatetime = usergetmidnight($timenow, $sitetimezone) + ($CFG->scorm_updatetimelast * 3600);
$updatetime = usergetmidnight($timenow, $sitetimezone);
if ($CFG->scorm_updatetimelast < $updatetime and $timenow > $updatetime) {