Commit 5fdcefe7 authored by Franco Fichtner's avatar Franco Fichtner

firewall: fix isset() foo

parent 2fff034f
...@@ -845,8 +845,9 @@ include("head.inc"); ...@@ -845,8 +845,9 @@ include("head.inc");
if(have_ruleint_access("enc0")) if(have_ruleint_access("enc0"))
$interfaces["enc0"] = "IPsec"; $interfaces["enc0"] = "IPsec";
/* add openvpn/tun interfaces */ /* add openvpn/tun interfaces */
if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"]) if (isset($config['openvpn']['openvpn-server']) || isset($config['openvpn']['openvpn-client'])) {
$interfaces["openvpn"] = "OpenVPN"; $interfaces['openvpn'] = 'OpenVPN';
}
if (is_array($pconfig['interface'])) if (is_array($pconfig['interface']))
$pconfig['interface'] = implode(",", $pconfig['interface']); $pconfig['interface'] = implode(",", $pconfig['interface']);
$selected_interfaces = explode(",", $pconfig['interface']); $selected_interfaces = explode(",", $pconfig['interface']);
......
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