aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_forums.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-01-16 21:34:20 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-16 21:34:20 +0100
commit1cd8bbac0cf6e7d78ecc681f0aa75d9fb49a1eab (patch)
treeda19c6e905f4f79ac61fb2bfaf9155da1dbb863a /phpBB/includes/acp/acp_forums.php
parent7f6ececf95da25ce37e6f1359755d62820a3b2ce (diff)
parent84ccb3aded7fe303fb176b87f7b976288dcedf35 (diff)
downloadforums-1cd8bbac0cf6e7d78ecc681f0aa75d9fb49a1eab.tar
forums-1cd8bbac0cf6e7d78ecc681f0aa75d9fb49a1eab.tar.gz
forums-1cd8bbac0cf6e7d78ecc681f0aa75d9fb49a1eab.tar.bz2
forums-1cd8bbac0cf6e7d78ecc681f0aa75d9fb49a1eab.tar.xz
forums-1cd8bbac0cf6e7d78ecc681f0aa75d9fb49a1eab.zip
Merge pull request #5071 from dsinn/ticket/15495
[ticket/15495] Use transaction in ACP move_forum
Diffstat (limited to 'phpBB/includes/acp/acp_forums.php')
-rw-r--r--phpBB/includes/acp/acp_forums.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php
index cf01ff2489..6b841560c9 100644
--- a/phpBB/includes/acp/acp_forums.php
+++ b/phpBB/includes/acp/acp_forums.php
@@ -1431,6 +1431,8 @@ class acp_forums
return $errors;
}
+ $db->sql_transaction('begin');
+
$moved_forums = get_forum_branch($from_id, 'children', 'descending');
$from_data = $moved_forums[0];
$diff = count($moved_forums) * 2;
@@ -1502,6 +1504,8 @@ class acp_forums
WHERE " . $db->sql_in_set('forum_id', $moved_ids);
$db->sql_query($sql);
+ $db->sql_transaction('commit');
+
return $errors;
}