summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-15 14:22:24 +0000
committerErmal <eri@pfsense.org>2011-06-15 14:22:24 +0000
commitf45075dd98eefbad6d02794a335204c5dc8d7c74 (patch)
tree86a7a17509608b4f34556bb2352174227f95b063 /etc
parent8f5d92a99b982321109a6a729054da87a1a4fdee (diff)
downloadpfsense-f45075dd98eefbad6d02794a335204c5dc8d7c74.zip
pfsense-f45075dd98eefbad6d02794a335204c5dc8d7c74.tar.gz
Restore this back to allow both users and vouchers enabled at same time.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index b0cbf14..cd419ff 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -697,7 +697,7 @@ function captiveportal_prune_old() {
}
/* if vouchers are configured, activate session timeouts */
- if (!$timedout && isset($config['voucher']['enable'])) {
+ if (!$timedout && isset($config['voucher']['enable']) && !empty($cpentry[7])) {
if ($pruning_time >= ($cpentry[0] + $cpentry[7])) {
$timedout = true;
$term_cause = 5; // Session-Timeout
OpenPOWER on IntegriCloud