aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_main.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2009-07-19 11:34:01 +0000
committerChris Smith <toonarmy@phpbb.com>2009-07-19 11:34:01 +0000
commit21094ac790ff2206cf8e07b89b7d5130db63e03c (patch)
tree5755d2bfa715a30b9d3d6fdc12a0d3d40b78115a /phpBB/includes/mcp/mcp_main.php
parent8dbdaff6d38033b2bb28f1e05366bc69097ab3a2 (diff)
downloadforums-21094ac790ff2206cf8e07b89b7d5130db63e03c.tar
forums-21094ac790ff2206cf8e07b89b7d5130db63e03c.tar.gz
forums-21094ac790ff2206cf8e07b89b7d5130db63e03c.tar.bz2
forums-21094ac790ff2206cf8e07b89b7d5130db63e03c.tar.xz
forums-21094ac790ff2206cf8e07b89b7d5130db63e03c.zip
Copy poll options properly when copying topic. #39065
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9797 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_main.php')
-rw-r--r--phpBB/includes/mcp/mcp_main.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php
index 0dfe3b0086..3c265d56da 100644
--- a/phpBB/includes/mcp/mcp_main.php
+++ b/phpBB/includes/mcp/mcp_main.php
@@ -1064,7 +1064,9 @@ function mcp_fork_topic($topic_ids)
'topic_bumper' => (int) $topic_row['topic_bumper'],
'poll_title' => (string) $topic_row['poll_title'],
'poll_start' => (int) $topic_row['poll_start'],
- 'poll_length' => (int) $topic_row['poll_length']
+ 'poll_length' => (int) $topic_row['poll_length'],
+ 'poll_max_options' => (int) $topic_row['poll_max_options'],
+ 'poll_vote_change' => (int) $topic_row['poll_vote_change'],
);
$db->sql_query('INSERT INTO ' . TOPICS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary));