diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/util.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 6146d7c..7737ad1 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -1206,10 +1206,10 @@ function xml_safe_fieldname($fieldname) { } function mac_format($clientmac) { - global $config; + global $config, $cpzone; $mac = explode(":", $clientmac); - $mac_format = $config['captiveportal']['radmac_format'] ? $config['captiveportal']['radmac_format'] : false; + $mac_format = $cpzone ? $config['captiveportal'][$cpzone]['radmac_format'] : false; switch($mac_format) { case 'singledash': |