From: donal72 Date: Tue, 10 Apr 2007 22:23:37 +0000 (+0000) Subject: MNET: Uninitialised variable $timenow. Should be time()? X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f71a7f8f376b8c5a4fd6812d644f21f1e6fdd653;p=moodle.git MNET: Uninitialised variable $timenow. Should be time()? --- 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"); } }