Restore this back to allow both users and vouchers enabled at same time.

This commit is contained in:
Ermal 2011-06-15 14:22:24 +00:00
parent 8f5d92a99b
commit f45075dd98

View File

@ -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