summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2012-05-06 14:07:42 -0400
committerChris Buechler <cmb@pfsense.org>2012-05-06 14:07:42 -0400
commit89341b505e8956b358b4c20aa59727e73b0ad567 (patch)
tree2e1d2b0f89845ffc0b38263f7f1d63fa5b85742a /usr/local/captiveportal
parent5db4d1eb56f92c75d8db0f7324b0bd08b58b80aa (diff)
downloadpfsense-89341b505e8956b358b4c20aa59727e73b0ad567.zip
pfsense-89341b505e8956b358b4c20aa59727e73b0ad567.tar.gz
fix vouchers
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 82514d8..1fecf26 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -143,7 +143,7 @@ EOD;
captiveportal_logportalauth("unauthenticated",$clientmac,$clientip,"ACCEPT");
portal_allow($clientip, $clientmac, "unauthenticated");
-} else if ($config['voucher'][$cpzone]['enable'] && $_POST['accept'] && $_POST['auth_voucher']) {
+} else if (isset($config['voucher'][$cpzone]['enable']) && $_POST['accept'] && $_POST['auth_voucher']) {
$voucher = trim($_POST['auth_voucher']);
$timecredit = voucher_auth($voucher);
OpenPOWER on IntegriCloud