diff options
author | Ermal <eri@pfsense.org> | 2013-02-11 11:16:16 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-02-11 11:16:16 +0000 |
commit | 1a1967d6ee95e234fde95529e8862bbb807c2934 (patch) | |
tree | e66712d8f9b150b9a4bd240118921d1433490cf3 | |
parent | 8135f01f456b91a881d0d1fea67c7f60981fd7e5 (diff) | |
download | pfsense-1a1967d6ee95e234fde95529e8862bbb807c2934.zip pfsense-1a1967d6ee95e234fde95529e8862bbb807c2934.tar.gz |
Test that timeout value is bigger than 0
-rw-r--r-- | etc/inc/captiveportal.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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. |