mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/9820] phpBB Debug Error when trying to post a new topic.
Regression from aa4519fb44
PHPBB3-9820
PHPBB3-7260
This commit is contained in:
parent
05c88bb00d
commit
ffd9437948
1 changed files with 12 additions and 9 deletions
|
@ -402,7 +402,9 @@ if ($post_data['poll_start'])
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
$original_poll_data = array(
|
if ($mode == 'edit')
|
||||||
|
{
|
||||||
|
$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'],
|
||||||
'poll_max_options' => $post_data['poll_max_options'],
|
'poll_max_options' => $post_data['poll_max_options'],
|
||||||
|
@ -410,7 +412,8 @@ $original_poll_data = array(
|
||||||
'poll_start' => $post_data['poll_start'],
|
'poll_start' => $post_data['poll_start'],
|
||||||
'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']);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue