aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-06-14 18:59:12 +0000
committerNils Adermann <naderman@naderman.de>2006-06-14 18:59:12 +0000
commitc9e971759db48d610c81f5f1ae4d054c130f635a (patch)
tree6939f286bd7c54d4a9bc4ff6204b3ef95b9a7846 /phpBB/includes/functions_admin.php
parent771d9f21cbcabd06535f1a32846b9fdc23f59df8 (diff)
downloadforums-c9e971759db48d610c81f5f1ae4d054c130f635a.tar
forums-c9e971759db48d610c81f5f1ae4d054c130f635a.tar.gz
forums-c9e971759db48d610c81f5f1ae4d054c130f635a.tar.bz2
forums-c9e971759db48d610c81f5f1ae4d054c130f635a.tar.xz
forums-c9e971759db48d610c81f5f1ae4d054c130f635a.zip
- automatically sync topic_reported when deleting a post [Bug #2152]
- retrieve forum information in report.php - don't update deleted topics - proper permission check for "admin or moderator" - allow changing poster while ip dropdown contains a different user [Bug #2190] - fixed a typo in acp_styles [Bug #2188] - allow inserting BBCode at the first position of the textarea [Bug #2078] - allow the style name to be different than the style path git-svn-id: file:///svn/phpbb/trunk@6063 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 88edddad50..f655cf9ae0 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1157,7 +1157,8 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false,
$sql = 'SELECT DISTINCT(post_id)
FROM ' . REPORTS_TABLE . '
- WHERE post_id IN (' . implode(', ', $post_ids) . ')';
+ WHERE post_id IN (' . implode(', ', $post_ids) . ')
+ AND report_closed = 0';
$result = $db->sql_query($sql);
$post_ids = array();