MDL-21579 "Implement session token for embedded application" Oops. Error in sql fixed now.

This commit is contained in:
Jamie Pratt 2010-05-03 06:36:52 +00:00
parent 7210e88714
commit 548da7ee96

View File

@ -568,8 +568,9 @@
//cleanup old session linked tokens
//deletes the session linked tokens that are over a day old.
mtrace("Deleting session linked tokens more than one day old...", '');
$DB->delete_records_select('external_tokens', 'lastaccess < {onedayago} AND tokentype = {tokentype}',
$DB->delete_records_select('external_tokens', 'lastaccess < :onedayago AND tokentype = :tokentype',
array('onedayago' => time() - DAYSECS, 'tokentype' => EXTERNAL_TOKEN_EMBEDDED));
mtrace('done.');
// run any customized cronjobs, if any
if ($locals = get_plugin_list('local')) {