aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-09-08 13:39:34 +0000
committerChris Smith <toonarmy@phpbb.com>2008-09-08 13:39:34 +0000
commit0e0100c5255dd288cc479274a112e4eb42a4bacf (patch)
tree1013fd8ea222d4e4fbab3d360fc25be2d59218b0 /phpBB/includes/functions_admin.php
parenta32f3a67095327dc3e75c01ba21bbb90ad479c83 (diff)
downloadforums-0e0100c5255dd288cc479274a112e4eb42a4bacf.tar
forums-0e0100c5255dd288cc479274a112e4eb42a4bacf.tar.gz
forums-0e0100c5255dd288cc479274a112e4eb42a4bacf.tar.bz2
forums-0e0100c5255dd288cc479274a112e4eb42a4bacf.tar.xz
forums-0e0100c5255dd288cc479274a112e4eb42a4bacf.zip
merge r8829, r8830, r8831, r8832, r8833, r8834, r8835, r8836, r8837, r8838
git-svn-id: file:///svn/phpbb/trunk@8839 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index a91988a8d8..ec3a3e79f6 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -551,7 +551,7 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
'posts' => ($call_delete_posts) ? delete_posts($where_type, $where_ids, false, true, $post_count_sync, false) : 0,
);
- $sql = 'SELECT topic_id, forum_id, topic_approved
+ $sql = 'SELECT topic_id, forum_id, topic_approved, topic_moved_id
FROM ' . TOPICS_TABLE . '
WHERE ' . $where_clause;
$result = $db->sql_query($sql);
@@ -561,7 +561,7 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
$forum_ids[] = $row['forum_id'];
$topic_ids[] = $row['topic_id'];
- if ($row['topic_approved'])
+ if ($row['topic_approved'] && !$row['topic_moved_id'])
{
$approved_topics++;
}