Commit 1bf389a1 authored by Jos Schellevis's avatar Jos Schellevis

captive_portal, fix wrong zone deletion

parent 064de352
......@@ -43,12 +43,12 @@ if ($_GET['act'] == "del" && !empty($_GET['zone'])) {
if ($a_cp[$cpzone]) {
$cpzoneid = $a_cp[$cpzone]['zoneid'];
unset($a_cp[$cpzone]['enable']);
captiveportal_configure();
unset($a_cp[$cpzone]);
if (isset($config['voucher'][$cpzone])) {
unset($config['voucher'][$cpzone]);
}
write_config();
captiveportal_configure();
header("Location: services_captiveportal_zones.php");
exit;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment