summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-24 19:00:46 +0000
committerErmal <eri@pfsense.org>2010-03-24 19:00:46 +0000
commit05855d1dca61b490d226ad139fd0cd8c387b4a7d (patch)
treea19f0ebfd27d93c19245833b93f9b1976eb6e961 /usr
parente27d0494c7dcfba163438f5cd82aafefdb0360f2 (diff)
downloadpfsense-05855d1dca61b490d226ad139fd0cd8c387b4a7d.zip
pfsense-05855d1dca61b490d226ad139fd0cd8c387b4a7d.tar.gz
Fix checks. Reported-by: Efonne
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces_assign.php6
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']);
OpenPOWER on IntegriCloud