From 63a1625d788745aa7bce67bcb944f968ce0b7082 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Agarwal Date: Wed, 16 Nov 2011 09:47:00 +0530 Subject: [PATCH] MDL-30279 SCORM Fixing sql errors during cron --- mod/scorm/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index b4c84a94fa4..50906fbd4d9 100644 --- a/mod/scorm/lib.php +++ b/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)); } }