diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-24 18:02:27 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-24 18:02:27 +0000 |
commit | ddd272d3892cb1e31bc8c68849d43be67f7b8639 (patch) | |
tree | 8148b371ca19ceae7cea7aab63f013ee2fbf9c52 /usr/local/www/fbegin.inc | |
parent | 360530440936ef88c3cd7a945652199810587310 (diff) | |
download | pfsense-ddd272d3892cb1e31bc8c68849d43be67f7b8639.zip pfsense-ddd272d3892cb1e31bc8c68849d43be67f7b8639.tar.gz |
Fixup problems that aries by using the same variables withing for loops.
PHP does not define any scope for this vars and this breaks things.
For this instance fix tabs on dhcp and firerwall rules.
Diffstat (limited to 'usr/local/www/fbegin.inc')
-rwxr-xr-x | usr/local/www/fbegin.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index 8f6fa01..9db1963 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -252,11 +252,11 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') { output_menu_item("/status_upnp.php", "UPnP"); } ?> - <?php $iflist = get_configured_interface_with_descr(); - foreach ($iflist as $if => $ifdesc) { - if (is_array($config['interfaces'][$if]['wireless']) && - preg_match($g['wireless_regex'], $config['interfaces'][$if]['if'])) - $ifdescrs[$if] = $ifdesc; + <?php $ifentries = get_configured_interface_with_descr(); + foreach ($ifentries as $ent => $entdesc) { + if (is_array($config['interfaces'][$ent]['wireless']) && + preg_match($g['wireless_regex'], $config['interfaces'][$ent]['if'])) + $ifdescrs[$ent] = $entdesc; } if (count($ifdescrs) > 0): ?> <?=output_menu_item("/status_wireless.php", "Wireless");?> |