summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-31 23:42:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-31 23:42:11 +0000
commitb4387c96a83fe91c7863e8c327175c1a4ef58d3b (patch)
tree725c28f453b1f33f92859f20adc9b756831a0ebf /etc
parentd6caad17bba4980ce5b68a8e4f94cd338009c866 (diff)
downloadpfsense-b4387c96a83fe91c7863e8c327175c1a4ef58d3b.zip
pfsense-b4387c96a83fe91c7863e8c327175c1a4ef58d3b.tar.gz
Make sure $bridges_total is a numeric
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 986dfb7..4d761ad 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -179,6 +179,8 @@ function interfaces_optional_configure_if($opti) {
global $config, $g;
global $bridgeconfig;
global $bridges_total;
+
+ if(!is_numeric($bridges_total)) $bridges_total=0;
$optcfg = $config['interfaces']['opt' . $opti];
OpenPOWER on IntegriCloud