aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-12-04 00:05:56 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-12-04 00:05:56 +0100
commit6f81a2f5b87cbeae08106b3d0c3d105fb2e2af72 (patch)
tree5d7469913fd124d6a31498ea1d8812ed36ff210f
parent7f8968595b78d49c4ffafada67700ad929693739 (diff)
parentf88e89900f34f6165a9002c3a2cb3307310584ee (diff)
downloadforums-6f81a2f5b87cbeae08106b3d0c3d105fb2e2af72.tar
forums-6f81a2f5b87cbeae08106b3d0c3d105fb2e2af72.tar.gz
forums-6f81a2f5b87cbeae08106b3d0c3d105fb2e2af72.tar.bz2
forums-6f81a2f5b87cbeae08106b3d0c3d105fb2e2af72.tar.xz
forums-6f81a2f5b87cbeae08106b3d0c3d105fb2e2af72.zip
Merge remote-tracking branch 'nickvergessen/ticket/10503' into prep-release-3.0.10
* nickvergessen/ticket/10503: [ticket/10503] Debug error "Invalid arguments" when previewing edits
-rw-r--r--phpBB/posting.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index ea3b53e939..76c8100c78 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -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