mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
Merge branch 'prep-release-3.0.10' into develop-olympus
* prep-release-3.0.10: [ticket/10503] Debug error "Invalid arguments" when previewing edits
This commit is contained in:
commit
9b9f30bbb9
1 changed files with 4 additions and 3 deletions
|
@ -895,7 +895,7 @@ if ($submit || $preview || $refresh)
|
|||
|
||||
$message_parser->parse_poll($poll);
|
||||
|
||||
$post_data['poll_options'] = (isset($poll['poll_options'])) ? $poll['poll_options'] : '';
|
||||
$post_data['poll_options'] = (isset($poll['poll_options'])) ? $poll['poll_options'] : array();
|
||||
$post_data['poll_title'] = (isset($poll['poll_title'])) ? $poll['poll_title'] : '';
|
||||
|
||||
/* We reset votes, therefore also allow removing options
|
||||
|
@ -918,7 +918,8 @@ if ($submit || $preview || $refresh)
|
|||
'poll_options' => array(),
|
||||
);
|
||||
|
||||
$post_data['poll_options'] = $post_data['poll_title'] = '';
|
||||
$post_data['poll_options'] = array();
|
||||
$post_data['poll_title'] = '';
|
||||
$post_data['poll_start'] = $post_data['poll_length'] = $post_data['poll_max_options'] = $post_data['poll_last_vote'] = $post_data['poll_vote_change'] = 0;
|
||||
}
|
||||
else if (!$auth->acl_get('f_poll', $forum_id) && ($mode == 'edit') && ($post_id == $post_data['topic_first_post_id']) && ($original_poll_data['poll_title'] != ''))
|
||||
|
@ -934,7 +935,7 @@ if ($submit || $preview || $refresh)
|
|||
|
||||
$message_parser->parse_poll($poll);
|
||||
|
||||
$post_data['poll_options'] = (isset($poll['poll_options'])) ? $poll['poll_options'] : '';
|
||||
$post_data['poll_options'] = (isset($poll['poll_options'])) ? $poll['poll_options'] : array();
|
||||
$post_data['poll_title'] = (isset($poll['poll_title'])) ? $poll['poll_title'] : '';
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue