Project

General

Profile

« Previous | Next » 

Revision 00177918

Added by Jim Pingle about 5 years ago

Fix implode() param order. Issue #10659

View differences:

src/usr/local/www/diag_packet_capture.php
547 547
	$selectedif = convert_friendly_interface_to_real_interface_name($selectedif);
548 548

  
549 549
	if ($action == gettext("Start")) {
550
		$matchstr = implode($matches, " and ");
550
		$matchstr = implode(" and ", $matches);
551 551
		$cmd = "/usr/sbin/tcpdump -i {$selectedif} {$disablepromiscuous} {$searchcount} -s {$snaplen} -w {$fp}{$fn} " . escapeshellarg($matchstr);
552 552
		print_info_box(gettext('Packet capture is running'), 'info');
553 553
		?>
src/usr/local/www/diag_states_summary.php
127 127
		}
128 128
		$ports[] = "{$port}: {$count}";
129 129
	}
130
	return implode($ports, ', ');
130
	return implode(', ', $ports);
131 131
}
132 132

  
133 133
function print_summary_table($label, $iparr, $sort = TRUE) {

Also available in: Unified diff