Commit 95e421d5 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix some php warnings in filter.inc

parent 38aa5de5
......@@ -1679,10 +1679,10 @@ function filter_nat_rules_generate() {
if ($config['nat']['outbound']['mode'] == "disabled")
$natrules .= "\n# Outbound NAT rules are disabled\n";
if ($config['nat']['outbound']['mode'] == "advanced" || $config['nat']['outbound']['mode'] == "hybrid") {
if (isset($config['nat']['outbound']['mode']) && ($config['nat']['outbound']['mode'] == "advanced" || $config['nat']['outbound']['mode'] == "hybrid")) {
$natrules .= "\n# Outbound NAT rules (manual)\n";
/* advanced outbound rules */
if(is_array($config['nat']['outbound']['rule'])) {
if(isset($config['nat']['outbound']['rule'])) {
foreach ($config['nat']['outbound']['rule'] as $obent) {
if (isset($obent['disabled']))
continue;
......
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