0 || $interface['out_errors'] > 0) { $error_img = generate_port_link($interface,"Interface Errors",errors); } else { $error_img = ""; } if (port_permitted($interface['port_id'])) { $interface = ifLabel ($interface, $interface); $response[] = array('hostname'=>generate_device_link($interface), 'interface'=>generate_port_link($interface) . ' ' . $error_img, 'address'=>$address, 'description'=>$interface['ifAlias']); } } $output = array('current'=>$current,'rowCount'=>$rowCount,'rows'=>$response,'total'=>$total); echo _json_encode($output);