diff options
author | bcyrill <cyrill@bannwart.info> | 2012-06-10 20:20:50 +0300 |
---|---|---|
committer | bcyrill <cyrill@bannwart.info> | 2012-06-10 20:20:50 +0300 |
commit | 56f9032170d3130c2066e5eebbe18b96398073ca (patch) | |
tree | efca52f92d6d3ab8c80444d3a2063293d0725a5c | |
parent | 7b4b4158893abc4698a0fad0819ca2db66833d26 (diff) | |
download | pfsense-56f9032170d3130c2066e5eebbe18b96398073ca.zip pfsense-56f9032170d3130c2066e5eebbe18b96398073ca.tar.gz |
Make sure mac_format is always defined
-rw-r--r-- | etc/inc/util.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 88cce91..f12b13f 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -1209,8 +1209,7 @@ function mac_format($clientmac, $zone = false) { global $config; $mac = explode(":", $clientmac); - if ($zone) - $mac_format = $zone ? $config['captiveportal'][$zone]['radmac_format'] : false; + $mac_format = $zone ? $config['captiveportal'][$zone]['radmac_format'] : false; switch($mac_format) { case 'singledash': |