mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add an alternative method to get the device vendor.
This commit is contained in:
@@ -526,8 +526,14 @@
|
||||
|
||||
//use the mac address to get the vendor
|
||||
if (strlen($device_vendor) == 0) {
|
||||
$template_array = explode("/", $device_template);
|
||||
//get the device vendor using the mac address
|
||||
$device_vendor = device::get_vendor($device_mac_address);
|
||||
|
||||
//if the vendor was not found using the mac address use an alternative method
|
||||
if (strlen($device_vendor) == 0) {
|
||||
$template_array = explode("/", $device_template);
|
||||
$device_vendor = $template_array[0];
|
||||
}
|
||||
}
|
||||
|
||||
//set the sub array index
|
||||
|
||||
Reference in New Issue
Block a user