diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index d33037d8de..0aed1cba21 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -251,6 +251,12 @@ require_once "resources/require.php"; unset ($prep_statement); } +//use the mac address to get the vendor + if (strlen($device_vendor) == 0) { + $template_array = explode("/", $device_template); + $device_vendor = $template_array[0]; + } + //set the sub array index $x = "999"; @@ -625,10 +631,15 @@ require_once "resources/require.php";