git-svn-id: file:///svn/phpbb/trunk@8122 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof 2007-10-03 15:15:33 +00:00
parent 70c531c686
commit c1889ade60
2 changed files with 1 additions and 7 deletions

View file

@ -1930,9 +1930,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
}
$sql_insert_ary = array();
$sql_delete_array = array();
print_r($cur_poll_options);
for ($i = 0, $size = sizeof($poll['poll_options']); $i < $size; $i++)
{
if (strlen(trim($poll['poll_options'][$i])))
@ -1955,10 +1953,6 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
$db->sql_query($sql);
}
}
else if (!empty($cur_poll_options[$i]))
{
$sql_delete_array[] = $cur_poll_options[$i]['poll_option_id'];
}
}
$db->sql_multi_insert(POLL_OPTIONS_TABLE, $sql_insert_ary);

View file

@ -22,7 +22,7 @@
<!-- IF ERROR -->
<tr>
<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</td>
<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
</tr>
<!-- ENDIF -->