summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-24 16:11:25 +0000
committerErmal <eri@pfsense.org>2010-03-24 16:11:25 +0000
commit7554ab8ca355952a3048a8ee64c54810949cad7f (patch)
treef754074f90308d17fed9eb0910aa9b0c51ab0c2e /etc/inc/interfaces.inc
parentf38f806257eb5209adb315b99b42c6d9d943b4dc (diff)
downloadpfsense-7554ab8ca355952a3048a8ee64c54810949cad7f.zip
pfsense-7554ab8ca355952a3048a8ee64c54810949cad7f.tar.gz
Prevent upgrade/spurious errors from happening.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 452b5b6..13ba21a 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2109,7 +2109,7 @@ EOD;
if($interface == $gateway['interface'] && isset($gateway['defaultgw'])) {
$setdefaultgw = true;
break;
- } else if (isset($gateway['defaultgw'])) {
+ } else if (isset($gateway['defaultgw']) && !empty($gateway['interface'])) {
$founddefaultgw = true;
break;
}
OpenPOWER on IntegriCloud