diff options
Diffstat (limited to 'packages/routed.inc')
-rw-r--r-- | packages/routed.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/routed.inc b/packages/routed.inc index 2ccadf4c..92cd5701 100644 --- a/packages/routed.inc +++ b/packages/routed.inc @@ -32,7 +32,8 @@ function setup_routed() { global $config; $gw = ""; - if ($config['installedpackages']['routed']['config'][0]['enable'] == "on") { + if (isset($config['installedpackages']['routed']['config'][0]['enable']) && + $config['installedpackages']['routed']['config'][0]['enable'] == "on") { /* if user selected individual interfaces */ if (is_array($config['installedpackages']['routed']['config'][0]['interface_array'])) { $ifarr = $config['installedpackages']['routed']['config'][0]['interface_array']; @@ -55,7 +56,7 @@ function setup_routed() { function setup_etc_gateways($iface="") { global $config; - if ($iface != "") { + if (isset($iface)) { $realif= convert_friendly_interface_to_real_interface_name($iface); $ret = "if={$realif} "; } |