Commit a2559e59 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) crashreport PHP Fatal error: Cannot unset string offsets in...

(legacy) crashreport PHP Fatal error:  Cannot unset string offsets in /usr/local/www/system_advanced_network.php on line 58
parent 623d19b4
......@@ -52,11 +52,11 @@ if (isset($_POST) && count($_POST) > 0) {
}
if (isset($_POST['ipv6nat_enable']) && $_POST['ipv6nat_enable'] == "yes") {
$config['diag']['ipv6nat'] = array();
$config['diag']['ipv6nat']['enable'] = true;
$config['diag']['ipv6nat']['ipaddr'] = $_POST['ipv6nat_ipaddr'];
} elseif (isset($config['diag']['ipv6nat'])) {
unset($config['diag']['ipv6nat']['enable']);
unset($config['diag']['ipv6nat']['ipaddr']);
} elseif (isset($config['diag']['ipv6nat'])) {
unset($config['diag']['ipv6nat']);
}
if (isset($_POST['ipv6allow']) && $_POST['ipv6allow'] == "yes") {
......
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