[ticket/9820] phpBB Debug Error when trying to post a new topic.

Regression from aa4519fb44

PHPBB3-9820
PHPBB3-7260
This commit is contained in:
Joas Schilling 2010-09-14 13:10:50 +02:00
parent 05c88bb00d
commit ffd9437948

View file

@ -402,6 +402,8 @@ if ($post_data['poll_start'])
$db->sql_freeresult($result); $db->sql_freeresult($result);
} }
if ($mode == 'edit')
{
$original_poll_data = array( $original_poll_data = array(
'poll_title' => $post_data['poll_title'], 'poll_title' => $post_data['poll_title'],
'poll_length' => $post_data['poll_length'], 'poll_length' => $post_data['poll_length'],
@ -411,6 +413,7 @@ $original_poll_data = array(
'poll_last_vote' => $post_data['poll_last_vote'], 'poll_last_vote' => $post_data['poll_last_vote'],
'poll_vote_change' => $post_data['poll_vote_change'], 'poll_vote_change' => $post_data['poll_vote_change'],
); );
}
$orig_poll_options_size = sizeof($post_data['poll_options']); $orig_poll_options_size = sizeof($post_data['poll_options']);