diff options
-rw-r--r-- | etc/inc/util.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index f12b13f..88cce91 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -1209,7 +1209,8 @@ function mac_format($clientmac, $zone = false) { global $config; $mac = explode(":", $clientmac); - $mac_format = $zone ? $config['captiveportal'][$zone]['radmac_format'] : false; + if ($zone) + $mac_format = $zone ? $config['captiveportal'][$zone]['radmac_format'] : false; switch($mac_format) { case 'singledash': |