diff options
author | Ermal <eri@pfsense.org> | 2014-03-07 16:30:55 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-03-07 16:30:55 +0000 |
commit | 3d38041ead6f8fbf7581c2fc5b39ae43a886e21a (patch) | |
tree | 59010514a9d095d5ddc6da2e10bc78aafd503c25 | |
parent | 331c50a6fb0629bdc0ec8be46eabefd356e19e4d (diff) | |
download | pfsense-3d38041ead6f8fbf7581c2fc5b39ae43a886e21a.zip pfsense-3d38041ead6f8fbf7581c2fc5b39ae43a886e21a.tar.gz |
Properly use key here.
-rw-r--r-- | usr/local/www/services_captiveportal_vouchers.php | 3 |
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; |