mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-30279 SCORM Fixing sql errors during cron
This commit is contained in:
parent
6be90ce05f
commit
63a1625d78
@ -510,7 +510,7 @@ function scorm_cron () {
|
||||
$cfg_scorm = get_config('scorm');
|
||||
if (!empty($cfg_scorm->allowaicchacp)) {
|
||||
$expiretime = time() - ($cfg_scorm->aicchacpkeepsessiondata*24*60*60);
|
||||
$DB->delete_records_select('scorm_aicc_session', 'WHERE timemodified < ?', array($expiretime));
|
||||
$DB->delete_records_select('scorm_aicc_session', 'timemodified < ?', array($expiretime));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user