Index: mod/scorm/lib.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/scorm/lib.php,v retrieving revision 1.87.2.16 diff -u -r1.87.2.16 lib.php --- mod/scorm/lib.php 27 Oct 2009 11:24:56 -0000 1.87.2.16 +++ mod/scorm/lib.php 8 Feb 2010 10:51:29 -0000 @@ -403,9 +403,9 @@ } $timenow = time(); - $updatetime = usergetmidnight($timenow, $sitetimezone) + ($CFG->scorm_updatetimelast * 3600); + $updatetime = usergetmidnight($timenow, $sitetimezone); - if ($CFG->scorm_updatetimelast < $updatetime and $timenow > $updatetime) { + if ($CFG->scorm_updatetimelast < $updatetime) { set_config('scorm_updatetimelast', $timenow);