From b6db82d8af298ec744ebfeb505e1c29c86a6d66c Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Thu, 9 Oct 2014 16:14:06 +0000 Subject: [PATCH] Added a response code when things are ok - oops --- html/includes/api_functions.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index f9829b2a1e..bd9507d32e 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -468,6 +468,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); + $code = 200; $output = array("status" => "ok", "count" => $total_vlans, "vlans" => $vlans); } else { $code = 404;