summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-02-06 16:10:51 +0000
committerErmal <eri@pfsense.org>2012-02-06 16:10:51 +0000
commit2720e1cef2f9354f3b5ce78d10174e148e827ae1 (patch)
treefac29d99c9d5ea2fbbb2a87eee7a08f69ea500c3 /usr/local
parent530b980c437bfaf169b58745c59dae7af79eadc4 (diff)
downloadpfsense-2720e1cef2f9354f3b5ce78d10174e148e827ae1.zip
pfsense-2720e1cef2f9354f3b5ce78d10174e148e827ae1.tar.gz
Unset previously set voucher sync information
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/services_captiveportal_vouchers.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php
index 49682a9..a7efcc5 100644
--- a/usr/local/www/services_captiveportal_vouchers.php
+++ b/usr/local/www/services_captiveportal_vouchers.php
@@ -211,6 +211,10 @@ if ($_POST) {
else
unset($config['voucher']['enable']);
if (empty($_POST['vouchersyncusername'])) {
+ unset($config['voucher']['vouchersyncdbip']);
+ unset($config['voucher']['vouchersyncport']);
+ unset($config['voucher']['vouchersyncusername']);
+ unset($config['voucher']['vouchersyncpass']);
$config['voucher']['charset'] = $_POST['charset'];
$config['voucher']['rollbits'] = $_POST['rollbits'];
$config['voucher']['ticketbits'] = $_POST['ticketbits'];
OpenPOWER on IntegriCloud