mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Resolves #2330. Check if there is a previous voucher config before wiping
This commit is contained in:
parent
f6bda83c78
commit
ab9526e619
@ -220,7 +220,10 @@ if ($_POST) {
|
||||
}
|
||||
|
||||
if (!$input_errors) {
|
||||
$newvoucher = array();
|
||||
if (empty($config['voucher'][$cpzone]))
|
||||
$newvoucher = array();
|
||||
else
|
||||
$newvoucher = $config['voucher'][$cpzone];
|
||||
if ($_POST['enable'] == "yes")
|
||||
$newvoucher['enable'] = true;
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user