From f71a7f8f376b8c5a4fd6812d644f21f1e6fdd653 Mon Sep 17 00:00:00 2001 From: donal72 Date: Tue, 10 Apr 2007 22:23:37 +0000 Subject: [PATCH] MNET: Uninitialised variable $timenow. Should be time()? --- auth/mnet/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index 257491c816..47f7e52d02 100644 --- a/auth/mnet/auth.php +++ b/auth/mnet/auth.php @@ -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"); } } -- 2.39.5