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