We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 778934c commit fa08533Copy full SHA for fa08533
lib/mactrack_functions.php
@@ -1811,7 +1811,7 @@ function xform_mac_address($mac_address) {
1811
}else{ /* return is hex */
1812
$mac = "";
1813
for ($j = 0; $j < strlen($mac_address); $j++) {
1814
- $mac .= bin2hex($mac_address[$j]) . read_config_option("mt_mac_delim");
+ $mac .= bin2hex($mac_address[$j]) . ($j == strlen($mac_address) ? '' : read_config_option("mt_mac_delim"));
1815
}
1816
$mac_address = $mac;
1817
0 commit comments