MDL-30279 SCORM Fixing sql errors during cron

This commit is contained in:
Ankit Kumar Agarwal 2011-11-16 09:47:00 +05:30
parent 6be90ce05f
commit 63a1625d78

View File

@ -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));
}
}