$config needs to be a global. Someone needs a pointy-hat!

This commit is contained in:
Scott Ullrich 2007-04-29 23:13:35 +00:00
parent a0ee264a85
commit 34dcf69066

View File

@ -46,9 +46,10 @@
}
function handle_argument_group($argument1, $argument2) {
global $config;
log_error("Processing {$argument1} - {$argument2}");
$iface = convert_real_interface_to_friendly_interface_name($argument1);
if($config['interfaces'][$friendly_interface]['ipaddr'] <> "dhcp" and
if($config['interfaces'][$iface]['ipaddr'] <> "dhcp" and
$config['interfaces'][$iface]['ipaddr'] <> "pppoe" and
$config['interfaces'][$iface]['ipaddr'] <> "bigpond" and
$config['interfaces'][$iface]['ipaddr'] <> "pptp") {