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:
+1
-1
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user