From fa08533fa13726218c53346e20ac0b49737ee201 Mon Sep 17 00:00:00 2001 From: netniV Date: Fri, 16 Feb 2018 01:28:36 +0000 Subject: [PATCH] Fix for issue #65: Extra separator on mac address --- lib/mactrack_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mactrack_functions.php b/lib/mactrack_functions.php index 72fa09c..62d655f 100644 --- a/lib/mactrack_functions.php +++ b/lib/mactrack_functions.php @@ -1811,7 +1811,7 @@ function xform_mac_address($mac_address) { }else{ /* return is hex */ $mac = ""; for ($j = 0; $j < strlen($mac_address); $j++) { - $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")); } $mac_address = $mac; }