summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/services_captiveportal_vouchers.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php
index ba2a4d1..d2f674a 100644
--- a/usr/local/www/services_captiveportal_vouchers.php
+++ b/usr/local/www/services_captiveportal_vouchers.php
@@ -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
OpenPOWER on IntegriCloud