We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa5c035 + fa08533 commit df4eabaCopy full SHA for df4eaba
lib/mactrack_functions.php
@@ -1817,7 +1817,7 @@ function xform_mac_address($mac_address) {
1817
}else{ /* return is hex */
1818
$mac = "";
1819
for ($j = 0; $j < strlen($mac_address); $j++) {
1820
- $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"));
1821
}
1822
$mac_address = $mac;
1823
0 commit comments