Skip to content

Commit

Permalink
SCORM MDL-21551 fix calculation for when to run auto update everyday …
Browse files Browse the repository at this point in the history
…- thanks to Phillip Franks for the report/fix
  • Loading branch information
danmarsden committed Jun 24, 2010
1 parent 2418d71 commit c5b3ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/lib.php
Expand Up @@ -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) {

Expand Down

0 comments on commit c5b3ba6

Please sign in to comment.