mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 23:55:26 +02:00
git-svn-id: file:///svn/phpbb/trunk@8115 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
bc80703c13
commit
fe6021c0a3
@ -107,6 +107,9 @@
|
|||||||
<li>[Fix] Use correct dimension (width x height) in ACP (Bug #14452)</li>
|
<li>[Fix] Use correct dimension (width x height) in ACP (Bug #14452)</li>
|
||||||
<li>[Fix] Only display PM history links if there are PM's to be displayed (Bug #14484)</li>
|
<li>[Fix] Only display PM history links if there are PM's to be displayed (Bug #14484)</li>
|
||||||
<li>[Feature] Added completely new hook system to allow better application/mod integration - see docs/hook_system.html</li>
|
<li>[Feature] Added completely new hook system to allow better application/mod integration - see docs/hook_system.html</li>
|
||||||
|
<li>[Fix] Correctly delete excess poll options (Bug #14566)</li>
|
||||||
|
<li>[Fix] Allow names evaluating to false for poll options</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<a name="v30rc4"></a><h3>1.ii. Changes since 3.0.RC4</h3>
|
<a name="v30rc4"></a><h3>1.ii. Changes since 3.0.RC4</h3>
|
||||||
|
@ -1932,7 +1932,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
|||||||
$sql_insert_ary = array();
|
$sql_insert_ary = array();
|
||||||
for ($i = 0, $size = sizeof($poll['poll_options']); $i < $size; $i++)
|
for ($i = 0, $size = sizeof($poll['poll_options']); $i < $size; $i++)
|
||||||
{
|
{
|
||||||
if (trim($poll['poll_options'][$i]))
|
if (strlen(trim($poll['poll_options'][$i])))
|
||||||
{
|
{
|
||||||
if (empty($cur_poll_options[$i]))
|
if (empty($cur_poll_options[$i]))
|
||||||
{
|
{
|
||||||
@ -1959,7 +1959,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
|||||||
if (sizeof($poll['poll_options']) < sizeof($cur_poll_options))
|
if (sizeof($poll['poll_options']) < sizeof($cur_poll_options))
|
||||||
{
|
{
|
||||||
$sql = 'DELETE FROM ' . POLL_OPTIONS_TABLE . '
|
$sql = 'DELETE FROM ' . POLL_OPTIONS_TABLE . '
|
||||||
WHERE poll_option_id >= ' . sizeof($poll['poll_options']) . '
|
WHERE poll_option_id > ' . sizeof($poll['poll_options']) . '
|
||||||
AND topic_id = ' . $data['topic_id'];
|
AND topic_id = ' . $data['topic_id'];
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user