Code Duplication    Length = 7-7 lines in 2 locations

Sources/Poll.php 1 location

@@ 167-173 (lines=7) @@
164
165
	$pollOptions = array();
166
	$inserts = array();
167
	foreach ($_REQUEST['options'] as $id)
168
	{
169
		$id = (int) $id;
170
171
		$pollOptions[] = $id;
172
		$inserts[] = array($row['id_poll'], $user_info['id'], $id);
173
	}
174
175
	// Add their vote to the tally.
176
	$smcFunc['db_insert']('insert',

SSI.php 1 location

@@ 1636-1642 (lines=7) @@
1633
1634
	$sOptions = array();
1635
	$inserts = array();
1636
	foreach ($_REQUEST['options'] as $id)
1637
	{
1638
		$id = (int) $id;
1639
1640
		$sOptions[] = $id;
1641
		$inserts[] = array($_POST['poll'], $user_info['id'], $id);
1642
	}
1643
1644
	// Add their vote in to the tally.
1645
	$smcFunc['db_insert']('insert',