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

This commit is contained in:
Dan Marsden
2010-06-24 08:06:57 +00:00
parent 48cbcd8df5
commit ae53b6879f
+1 -1
View File
@@ -400,7 +400,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) {