From 1a1967d6ee95e234fde95529e8862bbb807c2934 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 11 Feb 2013 11:16:16 +0000 Subject: Test that timeout value is bigger than 0 --- etc/inc/captiveportal.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index b021d6a..d090f1b 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -645,7 +645,7 @@ function captiveportal_prune_old() { /* check if the radius idle_timeout attribute has been set and if its set change the idletimeout to this value */ $uidletimeout = (is_numeric($cpentry[8])) ? $cpentry[8] : $idletimeout; /* if an idle timeout is specified, get last activity timestamp from ipfw */ - if (!$timedout && $uidletimeout) { + if (!$timedout && $uidletimeout > 0) { $lastact = captiveportal_get_last_activity($cpentry[2]); /* If the user has logged on but not sent any traffic they will never be logged out. * We "fix" this by setting lastact to the login timestamp. -- cgit v1.1