mirror of
https://github.com/librenms/librenms.git
synced 2024-09-24 03:48:54 +00:00
Updated vlans returned, was a double array by accident
This commit is contained in:
parent
d2f727cfcb
commit
a87dd794e4
@ -469,7 +469,7 @@ function get_vlans() {
|
||||
if ($device) {
|
||||
$vlans = dbFetchRows("SELECT vlan_vlan,vlan_domain,vlan_name,vlan_type,vlan_mtu FROM vlans WHERE `device_id` = ?", array($device_id));
|
||||
$total_vlans = count($vlans);
|
||||
$output = array("status" => "ok", "count" => $total_vlans, "vlans" => array($vlans));
|
||||
$output = array("status" => "ok", "count" => $total_vlans, "vlans" => $vlans);
|
||||
} else {
|
||||
$code = 404;
|
||||
$output = array("status" => "error", "Device $hostname not found");
|
||||
|
Loading…
Reference in New Issue
Block a user