mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MNET: Uninitialised variable $timenow. Should be time()?
This commit is contained in:
parent
77b4d4be49
commit
f71a7f8f37
@ -991,8 +991,8 @@ class auth_plugin_mnet extends auth_plugin_base {
|
||||
$random100 = rand(0,100);
|
||||
if ($random100 < 10) { // Approximately 10% of the time.
|
||||
// nuke olden sessions
|
||||
$longtime = $timenow - (1 * 3600 * 24);
|
||||
delete_records_select('mnet_session', "expires < $timenow");
|
||||
$longtime = time() - (1 * 3600 * 24);
|
||||
delete_records_select('mnet_session', "expires < $longtime");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user