0 || $entry['ifOutErrors'] > 0) { $error_img = generate_port_link($entry, "", port_errors); } else { $error_img = ''; } $fdb_host = dbFetchRow('SELECT * FROM ports_fdb AS F, ipv4_mac AS M WHERE F.mac_address = ? AND M.mac_address = F.mac_address', array($entry['mac_address'])); $response[] = array( 'os' => $entry['os'], 'mac_address' => formatMac($entry['mac_address']), 'ipv4_address' => $fdb_host['ipv4_address'], 'hostname' => generate_device_link($entry), 'interface' => generate_port_link($entry, makeshortif(fixifname(cleanPort($entry['label'])))).' '.$error_img, 'vlan' => $entry['vlan_vlan'], ); }//end if unset($ignore); }//end foreach $output = array( 'current' => $current, 'rowCount' => $rowCount, 'rows' => $response, 'total' => $total, ); echo _json_encode($output);