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