diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-11-07 23:20:20 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-11-07 23:20:20 +0000 |
commit | fded24de7f35eb913c244af790cb0915aca08cb2 (patch) | |
tree | 47e618fae59c726b31d6930366b219c0ae95d48c /etc | |
parent | 039f7491631f57533a2bd4a15c9a211f61d00235 (diff) | |
download | pfsense-fded24de7f35eb913c244af790cb0915aca08cb2.zip pfsense-fded24de7f35eb913c244af790cb0915aca08cb2.tar.gz |
Better check if the knob is defined or has no value.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index d8789b8..9d002e4 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -147,7 +147,7 @@ function interface_bridge_configure(&$bridge) $checklist = get_configured_interface_list(); - if ($g['booting'] || $bridge['bridgeif'] <> "") { + if ($g['booting'] || !empty($bridge['bridgeif'])) { mwexec("/sbin/ifconfig {$bridge['bridgeif']} destroy"); mwexec("/sbin/ifconfig {$bridge['bridgeif']} create"); $bridgeif = $bridge['bridgeif']; @@ -1927,4 +1927,4 @@ function get_interface_mac($interface) return $mac; } -?>
\ No newline at end of file +?> |