mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Merge branch 'ticket/nickvergessen/9820' into develop-olympus
* ticket/nickvergessen/9820: [ticket/9820] phpBB Debug Error when trying to post a new topic.
This commit is contained in:
@@ -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']);
|
||||
|
||||
|
Reference in New Issue
Block a user