diff options
author | Ermal <eri@pfsense.org> | 2011-06-13 12:22:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-06-13 12:22:49 +0000 |
commit | 48de5a1069b5f18e14a606a3b9ac65b22896b04e (patch) | |
tree | 833568023cc31486acecf49024b5288182e66fad /etc | |
parent | f8c462dd898b1b7f8518a4e5c40c40419e263afc (diff) | |
download | pfsense-48de5a1069b5f18e14a606a3b9ac65b22896b04e.zip pfsense-48de5a1069b5f18e14a606a3b9ac65b22896b04e.tar.gz |
Do not test for availbility of voucher session_timeout in the database it is mandatory for vouchers. This will make sure that if ever a corrupted db happens a user will be required to relogin and correct the db. Possibly related to: http://forum.pfsense.org/index.php/topic,37636.0.html
Diffstat (limited to 'etc')
-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 a87e732..413e3bc 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -691,7 +691,7 @@ function captiveportal_prune_old() { } /* if vouchers are configured, activate session timeouts */ - if (!$timedout && isset($config['voucher']['enable']) && !empty($cpentry[7])) { + if (!$timedout && isset($config['voucher']['enable'])) { if (time() >= ($cpentry[0] + $cpentry[7])) { $timedout = true; $term_cause = 5; // Session-Timeout |