mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-21579 "Implement session token for embedded application" Oops. Error in sql fixed now.
This commit is contained in:
parent
7210e88714
commit
548da7ee96
@ -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')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user