summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-12-21 21:44:32 +0000
committerErmal Luçi <eri@pfsense.org>2008-12-21 21:44:32 +0000
commitabd528b7653a77cdbf1494d93bf3e238321d0ac3 (patch)
tree012da02512b872373712b083f1a873d1130345b0 /etc
parentb3c7a82b1a6920325ff3d093b591274001eb90ac (diff)
downloadpfsense-abd528b7653a77cdbf1494d93bf3e238321d0ac3.zip
pfsense-abd528b7653a77cdbf1494d93bf3e238321d0ac3.tar.gz
Foreach only if array.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 4cdf7e2..16684be 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1074,6 +1074,7 @@ EOD;
/* Traverse looking for 1:1 rules that have useftphelper enabled
* This will prevent NAT from occurring and ftpsesame should pick up the rest.
*/
+ if (is_array($config['nat']['onetoone']))
foreach($config['nat']['onetoone'] as $one) {
if($one['useftphelper']) {
$int = convert_friendly_interface_to_real_interface_name($one['interface']);
OpenPOWER on IntegriCloud