Permalink
Browse files

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

  • Loading branch information...
donal72
donal72 committed Apr 10, 2007
1 parent 6b68f4e commit d4c97b77a526b08bd4a5a7394f25ad6cc47db620
Showing with 2 additions and 2 deletions.
  1. +2 −2 auth/mnet/auth.php
View
@@ -991,8 +991,8 @@ function cron() {
$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");
}
}

0 comments on commit d4c97b7

Please sign in to comment.