diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 08ce0606e7..97c1d0df93 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -114,6 +114,7 @@
[Fix] Correctly limit input of the users location to 100 characters in the UCP and ACP. (Bug #32655)
[Fix] Sync reports when using the move all users posts tool in the ACP. (Bug #31165)
[Fix] Extra slash is included in the redirect url when redirecting to the forum root directory. (Bug #33605)
+ [Fix] Remove reported flag from shadow topics when closing reports. (Bug #19765)
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php
index ce55fec7df..e1a8111c29 100644
--- a/phpBB/includes/mcp/mcp_reports.php
+++ b/phpBB/includes/mcp/mcp_reports.php
@@ -555,7 +555,8 @@ function close_report($report_id_list, $mode, $action)
{
$sql = 'UPDATE ' . TOPICS_TABLE . '
SET topic_reported = 0
- WHERE ' . $db->sql_in_set('topic_id', $close_report_topics);
+ WHERE ' . $db->sql_in_set('topic_id', $close_report_topics) . '
+ OR ' . $db->sql_in_set('topic_moved_id', $close_report_topics);
$db->sql_query($sql);
}
}