diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-08-28 20:14:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-08-28 20:14:26 +0000 |
commit | fa550a17b53ca8489858c2d8701a984673220b81 (patch) | |
tree | bf1e90e51dff80e2bc8ee2a7b707eb52dad198c1 | |
parent | b1d78acf11e7d307aa7212a7faad48b4790ef013 (diff) | |
download | pfsense-fa550a17b53ca8489858c2d8701a984673220b81.zip pfsense-fa550a17b53ca8489858c2d8701a984673220b81.tar.gz |
Stop clobbering $if on local pages.
-rwxr-xr-x | usr/local/www/guiconfig.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 152ab87..66094b3 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -202,8 +202,8 @@ $wkports = array( $specialnets = array("wanip" => "WAN address", "lanip" => "LAN address", "lan" => "LAN net", "pptp" => "PPTP clients"); $spiflist = get_configured_interface_with_descr(true, true); -foreach ($spiflist as $if => $ifdesc) { - $specialnets[$if] = $ifdesc . " net"; +foreach ($spiflist as $ifgui => $ifdesc) { + $specialnets[$ifgui] = $ifdesc . " net"; } $medias = array("auto" => "autoselect", "100full" => "100BASE-TX full-duplex", @@ -513,14 +513,14 @@ function hosts_sort() { usort($config['dnsmasq']['hosts'], "hostcmp"); } -function staticmaps_sort($if) { +function staticmaps_sort($ifgui) { global $g, $config; function staticmapcmp($a, $b) { return ipcmp($a['ipaddr'], $b['ipaddr']); } - usort($config['dhcpd'][$if]['staticmap'], "staticmapcmp"); + usort($config['dhcpd'][$ifgui]['staticmap'], "staticmapcmp"); } function aliases_sort() { |