From 7bb49cce580e48bb47c9c0894c41c396dd68f152 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sat, 9 Jan 2016 11:50:49 -0700 Subject: [PATCH] Change the vendor ID hex number to lower case and re-use prov object that already exists. --- app/devices/resources/classes/device.php | 2 +- app/provision/index.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/devices/resources/classes/device.php b/app/devices/resources/classes/device.php index 1c236ee640..5fb5d8bddd 100644 --- a/app/devices/resources/classes/device.php +++ b/app/devices/resources/classes/device.php @@ -86,7 +86,7 @@ include "root.php"; case "000e08": $device_vendor = "linksys"; break; - case "08000F": + case "08000f": $device_vendor = "mitel"; break; case "0080f0": diff --git a/app/provision/index.php b/app/provision/index.php index 431c78f632..c346eef992 100644 --- a/app/provision/index.php +++ b/app/provision/index.php @@ -299,8 +299,7 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0); //need to make sure content-type is correct if ($_REQUEST['content_type'] == 'application/octet-stream') { //format the mac address and - $format = new provision(); - $mac = $format->format_mac($mac, $device_vendor); + $mac = $prov->format_mac($mac, $device_vendor); //replace the variable name with the value $file_name = str_replace("{\$mac}", $mac, $file);