MNET: Uninitialised variable $timenow. Should be time()?

This commit is contained in:
donal72 2007-04-10 22:23:37 +00:00
parent 77b4d4be49
commit f71a7f8f37

View File

@ -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");
}
}