summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-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