diff options
author | Ermal <eri@pfsense.org> | 2014-03-07 16:30:55 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-03-07 17:49:54 +0000 |
commit | e327358bb40a614e7dc3b79993cded70f38d48f6 (patch) | |
tree | 75c7181f5114ea8b2f0b5425f81524a71f6dc5bb /usr/local/www/services_captiveportal_vouchers.php | |
parent | 416024696aabd82a3468dec2bd164abbb2c6309a (diff) | |
download | pfsense-e327358bb40a614e7dc3b79993cded70f38d48f6.zip pfsense-e327358bb40a614e7dc3b79993cded70f38d48f6.tar.gz |
Properly use key here.
Diffstat (limited to 'usr/local/www/services_captiveportal_vouchers.php')
-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 47c3882..cef0078 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; |