Skip to content

Commit

Permalink
MDL-21579 "Implement session token for embedded application" Oops. Er…
Browse files Browse the repository at this point in the history
…ror in sql fixed now.
  • Loading branch information
jamiepratt committed May 3, 2010
1 parent 7210e88 commit 548da7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 548da7e

Please sign in to comment.