summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-03-07 16:30:55 +0000
committerErmal <eri@pfsense.org>2014-03-07 16:30:55 +0000
commit3d38041ead6f8fbf7581c2fc5b39ae43a886e21a (patch)
tree59010514a9d095d5ddc6da2e10bc78aafd503c25 /usr
parent331c50a6fb0629bdc0ec8be46eabefd356e19e4d (diff)
downloadpfsense-3d38041ead6f8fbf7581c2fc5b39ae43a886e21a.zip
pfsense-3d38041ead6f8fbf7581c2fc5b39ae43a886e21a.tar.gz
Properly use key here.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/services_captiveportal_vouchers.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php
index 4edc39f..a7edc3d 100644
--- a/usr/local/www/services_captiveportal_vouchers.php
+++ b/usr/local/www/services_captiveportal_vouchers.php
@@ -285,7 +285,8 @@ if ($_POST) {
$url = "http://{$newvoucher['vouchersyncdbip']}";
$execcmd = <<<EOF
- \$toreturn['voucher'] = \$config['voucher'][$cpzone];
+ \$toreturn = array();
+ \$toreturn['voucher'] = \$config['voucher']['$cpzone'];
unset(\$toreturn['vouchersyncport'], \$toreturn['vouchersyncpass'], \$toreturn['vouchersyncusername'], \$toreturn['vouchersyncdbip']);
EOF;
OpenPOWER on IntegriCloud