mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-14 04:30:29 +01:00
[ticket/9820] phpBB Debug Error when trying to post a new topic.
Regression from aa4519fb44f4ff83e923c6cc4d5bde3f20082340 PHPBB3-9820 PHPBB3-7260
This commit is contained in:
parent
05c88bb00d
commit
ffd9437948
@ -402,15 +402,18 @@ if ($post_data['poll_start'])
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
$original_poll_data = array(
|
||||
'poll_title' => $post_data['poll_title'],
|
||||
'poll_length' => $post_data['poll_length'],
|
||||
'poll_max_options' => $post_data['poll_max_options'],
|
||||
'poll_option_text' => implode("\n", $post_data['poll_options']),
|
||||
'poll_start' => $post_data['poll_start'],
|
||||
'poll_last_vote' => $post_data['poll_last_vote'],
|
||||
'poll_vote_change' => $post_data['poll_vote_change'],
|
||||
);
|
||||
if ($mode == 'edit')
|
||||
{
|
||||
$original_poll_data = array(
|
||||
'poll_title' => $post_data['poll_title'],
|
||||
'poll_length' => $post_data['poll_length'],
|
||||
'poll_max_options' => $post_data['poll_max_options'],
|
||||
'poll_option_text' => implode("\n", $post_data['poll_options']),
|
||||
'poll_start' => $post_data['poll_start'],
|
||||
'poll_last_vote' => $post_data['poll_last_vote'],
|
||||
'poll_vote_change' => $post_data['poll_vote_change'],
|
||||
);
|
||||
}
|
||||
|
||||
$orig_poll_options_size = sizeof($post_data['poll_options']);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user