aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-09-04 14:04:30 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-09-04 14:04:30 +0000
commit44416f4744b9a55e35c7945a13759d3e7d71fd3d (patch)
treeedba30967ffbd7e7a0eeddd50fd5be526d357740 /phpBB/includes/functions_admin.php
parent0dbe7e3b6cd450342d3c566eb2caf36ca1b5db8e (diff)
downloadforums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.tar
forums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.tar.gz
forums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.tar.bz2
forums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.tar.xz
forums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.zip
- queue trigger feature
- queued posts do not affect user_posts - show links to MCP + queued posts in ucp and acp git-svn-id: file:///svn/phpbb/trunk@8816 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 7096c7099b..a91988a8d8 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -670,7 +670,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
$topic_ids[] = $row['topic_id'];
$forum_ids[] = $row['forum_id'];
- if ($row['post_postcount'] && $post_count_sync)
+ if ($row['post_postcount'] && $post_count_sync && $row['post_approved'])
{
$post_counts[$row['poster_id']] = (!empty($post_counts[$row['poster_id']])) ? $post_counts[$row['poster_id']] + 1 : 1;
}
@@ -709,6 +709,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
WHERE user_id = ' . $poster_id . '
AND user_posts < ' . $substract;
$db->sql_query($sql);
+
$sql = 'UPDATE ' . USERS_TABLE . '
SET user_posts = user_posts - ' . $substract . '
WHERE user_id = ' . $poster_id . '