Updated vlans returned, was a double array by accident

This commit is contained in:
laf 2014-10-01 21:00:07 +01:00
parent d2f727cfcb
commit a87dd794e4

View File

@ -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");