Browse files

MDL-30279 SCORM Fixing sql errors during cron

  • Loading branch information...
1 parent 6be90ce commit 63a1625d788745aa7bce67bcb944f968ce0b7082 @ankitagarwal ankitagarwal committed Nov 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/lib.php
View
2 mod/scorm/lib.php
@@ -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));
}
}

0 comments on commit 63a1625

Please sign in to comment.