From b16d70ebb133b1bf1ba0429d5d8b98698d670bd6 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 11 Feb 2013 10:56:37 +0000 Subject: Test that timeout value is bigger than 0 --- etc/inc/captiveportal.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 8b1381b..f364378 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -679,7 +679,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