summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-11-30 10:43:19 +0000
committerErmal Luçi <eri@pfsense.org>2008-11-30 10:43:19 +0000
commit3ae4960c7830427506c8b55bc6ac0e449ef19aa9 (patch)
treed909189bed8b852fa9b079510b4e7c8869e7d8e3 /etc/inc
parent7901dff51b185f3624b3eb0b242e2d0daabc62c9 (diff)
downloadpfsense-3ae4960c7830427506c8b55bc6ac0e449ef19aa9.zip
pfsense-3ae4960c7830427506c8b55bc6ac0e449ef19aa9.tar.gz
Correct some checks and use propper whitespace.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc20
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
+?>
OpenPOWER on IntegriCloud