Resolves #2330. Check if there is a previous voucher config before wiping

This commit is contained in:
Ermal 2012-04-06 17:53:04 +00:00
parent f6bda83c78
commit ab9526e619

View File

@ -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