aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-07-15 23:15:36 +0200
committerAndreas Fischer <bantu@phpbb.com>2010-07-15 23:15:36 +0200
commitcb043b0e6132f2d041b906b11ebb1debfeb943a6 (patch)
tree10b0a6dd0eecc672834c06c59712f70b0ce59ef7
parente7e98f1de5c394859284f031f2a4f0c47534b311 (diff)
parent1363ee109ba5e8fece57b296d745f8488f1c79d0 (diff)
downloadforums-cb043b0e6132f2d041b906b11ebb1debfeb943a6.tar
forums-cb043b0e6132f2d041b906b11ebb1debfeb943a6.tar.gz
forums-cb043b0e6132f2d041b906b11ebb1debfeb943a6.tar.bz2
forums-cb043b0e6132f2d041b906b11ebb1debfeb943a6.tar.xz
forums-cb043b0e6132f2d041b906b11ebb1debfeb943a6.zip
Merge branch 'ticket/rxu/9658' into develop-olympus
* ticket/rxu/9658: [ticket/9658] Optimize topic splitting.
-rw-r--r--phpBB/includes/functions_admin.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 4cd2962e3b..89892feb30 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -573,8 +573,8 @@ function move_posts($post_ids, $topic_id, $auto_sync = true)
while ($row = $db->sql_fetchrow($result))
{
- $forum_ids[] = $row['forum_id'];
- $topic_ids[] = $row['topic_id'];
+ $forum_ids[] = (int) $row['forum_id'];
+ $topic_ids[] = (int) $row['topic_id'];
}
$db->sql_freeresult($result);
@@ -591,7 +591,7 @@ function move_posts($post_ids, $topic_id, $auto_sync = true)
}
$sql = 'UPDATE ' . POSTS_TABLE . '
- SET forum_id = ' . $forum_row['forum_id'] . ", topic_id = $topic_id
+ SET forum_id = ' . (int) $forum_row['forum_id'] . ", topic_id = $topic_id
WHERE " . $db->sql_in_set('post_id', $post_ids);
$db->sql_query($sql);
@@ -602,7 +602,7 @@ function move_posts($post_ids, $topic_id, $auto_sync = true)
if ($auto_sync)
{
- $forum_ids[] = $forum_row['forum_id'];
+ $forum_ids[] = (int) $forum_row['forum_id'];
sync('topic_reported', 'topic_id', $topic_ids);
sync('topic_attachment', 'topic_id', $topic_ids);