1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-19 23:20:22 +01:00

Merge pull request #5071 from dsinn/ticket/15495

[ticket/15495] Use transaction in ACP move_forum
This commit is contained in:
Marc Alexander 2018-01-16 21:34:20 +01:00
commit 1cd8bbac0c
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -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;
}