0 || $entry['ifOutErrors'] > 0) { $error_img = generate_port_link($entry, "", 'port_errors'); } else { $error_img = ''; } $response[] = array( 'device' => generate_device_link(device_by_id_cache($entry['device_id'])), 'mac_address' => formatMac($entry['mac_address']), 'ipv4_address' => $entry['ipv4_address'], 'interface' => generate_port_link($entry, makeshortif(fixifname(cleanPort($entry['label'])))).' '.$error_img, 'vlan' => $entry['vlan'], ); }//end if unset($ignore); }//end foreach $output = array( 'current' => $current, 'rowCount' => $rowCount, 'rows' => $response, 'total' => $total, ); echo _json_encode($output);