aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_forums.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_forums.php')
-rw-r--r--phpBB/includes/acp/acp_forums.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php
index b59ab50c34..59792b5e01 100644
--- a/phpBB/includes/acp/acp_forums.php
+++ b/phpBB/includes/acp/acp_forums.php
@@ -1300,13 +1300,13 @@ class acp_forums
POLL_VOTES_TABLE => 'pv.topic_id',
);
- $sql = 'DELETE ' . POSTS_TABLE . ' p';
+ $sql = 'DELETE ';
$sql_using = "\nFROM " . POSTS_TABLE . ' p';
$sql_where = "\nWHERE p.forum_id = $forum_id\n";
foreach ($tables_ary as $table => $field)
{
- $sql .= ", $table " . strtok($field, '.');
+// $sql .= ", $table " . strtok($field, '.');
$sql_using .= ", $table " . strtok($field, '.');
$sql_where .= "\nAND $field = p." . strtok('');
}