diff options
author | Ermal <eri@pfsense.org> | 2010-03-24 19:00:46 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-24 19:00:46 +0000 |
commit | 05855d1dca61b490d226ad139fd0cd8c387b4a7d (patch) | |
tree | a19f0ebfd27d93c19245833b93f9b1976eb6e961 /usr | |
parent | e27d0494c7dcfba163438f5cd82aafefdb0360f2 (diff) | |
download | pfsense-05855d1dca61b490d226ad139fd0cd8c387b4a7d.zip pfsense-05855d1dca61b490d226ad139fd0cd8c387b4a7d.tar.gz |
Fix checks. Reported-by: Efonne
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index 33032ec..f5c13aa 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -262,19 +262,19 @@ if ($_GET['act'] == "del") { services_dhcpd_configure(); } - if ($config['filter']['rule'] > 0) { + if (count($config['filter']['rule']) > 0) { foreach ($config['filter']['rule'] as $x => $rule) { if($rule['interface'] == $id) unset($config['filter']['rule'][$x]); } } - if (is_array($config['nat']['advancedoutbound']) && $config['nat']['advancedoutbound']['rule'] > 0) { + if (is_array($config['nat']['advancedoutbound']) && count($config['nat']['advancedoutbound']['rule']) > 0) { foreach ($config['nat']['advancedoutbound']['rule'] as $x => $rule) { if($rule['interface'] == $id) unset($config['nat']['advancedoutbound']['rule'][$x]['interface']); } } - if (count(is_array($config['nat']['rule']) && $config['nat']['rule']) > 0) { + if (is_array($config['nat']['rule']) && count($config['nat']['rule']) > 0) { foreach ($config['nat']['rule'] as $x => $rule) { if($rule['interface'] == $id) unset($config['nat']['rule'][$x]['interface']); |