Code Duplication    Length = 6-7 lines in 2 locations

SSI.php 2 locations

@@ 1301-1306 (lines=6) @@
1298
		)
1299
	);
1300
	$sOptions = array();
1301
	while ($rowChoice = $smcFunc['db_fetch_assoc']($request))
1302
	{
1303
		censorText($rowChoice['label']);
1304
1305
		$sOptions[$rowChoice['id_choice']] = array($rowChoice['label'], $rowChoice['votes']);
1306
	}
1307
	$smcFunc['db_free_result']($request);
1308
1309
	// Can they view it?
@@ 1472-1478 (lines=7) @@
1469
	);
1470
	$sOptions = array();
1471
	$total_votes = 0;
1472
	while ($rowChoice = $smcFunc['db_fetch_assoc']($request))
1473
	{
1474
		censorText($rowChoice['label']);
1475
1476
		$sOptions[$rowChoice['id_choice']] = array($rowChoice['label'], $rowChoice['votes']);
1477
		$total_votes += $rowChoice['votes'];
1478
	}
1479
	$smcFunc['db_free_result']($request);
1480
1481
	$return = array(