diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-11-30 10:43:19 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-11-30 10:43:19 +0000 |
commit | 3ae4960c7830427506c8b55bc6ac0e449ef19aa9 (patch) | |
tree | d909189bed8b852fa9b079510b4e7c8869e7d8e3 /etc/inc | |
parent | 7901dff51b185f3624b3eb0b242e2d0daabc62c9 (diff) | |
download | pfsense-3ae4960c7830427506c8b55bc6ac0e449ef19aa9.zip pfsense-3ae4960c7830427506c8b55bc6ac0e449ef19aa9.tar.gz |
Correct some checks and use propper whitespace.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index a40e246..be9ebb3 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -70,17 +70,17 @@ function interfaces_vlan_configure() { } function interface_vlan_configure($if, $tag, $vlanif = "") { - if(!$if) { - log_error("interface_vlan_confgure called with if defined."); - return; - } - if(!$vlanif) { - log_error("interface_vlan_confgure called with vlanif defined."); - return; - } - global $config, $g; + if(empty($if)) { + log_error("interface_vlan_confgure called with if defined."); + return; + } + if(empty($vlanif)) { + log_error("interface_vlan_confgure called with vlanif defined."); + return; + } + /* make sure the parent interface is up */ interfaces_bring_up($if); /* Since we are going to add vlan(4) try to enable all that hardware supports. */ @@ -1932,4 +1932,4 @@ function setup_pppoe_reset_file($interface, $status) { } } -?>
\ No newline at end of file +?> |