diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-10-23 23:37:25 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-10-23 23:37:25 +0200 |
commit | b3d5f2b4e42404610f5db8dda25859db942fd60e (patch) | |
tree | bccaaffac02c2a94ffb5ca705a7e276f37addf7b /phpBB/includes/functions_admin.php | |
parent | 3236229188d9b36105633223f4b2df6c6b3eb0ad (diff) | |
download | forums-b3d5f2b4e42404610f5db8dda25859db942fd60e.tar forums-b3d5f2b4e42404610f5db8dda25859db942fd60e.tar.gz forums-b3d5f2b4e42404610f5db8dda25859db942fd60e.tar.bz2 forums-b3d5f2b4e42404610f5db8dda25859db942fd60e.tar.xz forums-b3d5f2b4e42404610f5db8dda25859db942fd60e.zip |
[feature/soft-delete] Fix unit tests for delete_posts()
PHPBB3-9567
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index a38fa2a70f..e2a133270b 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -1729,7 +1729,6 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false, $sql = 'SELECT SUM(t.topic_posts) AS forum_posts, SUM(t.topic_posts_unapproved) AS forum_posts_unapproved, SUM(t.topic_posts_softdeleted) AS forum_posts_softdeleted FROM ' . TOPICS_TABLE . ' t WHERE ' . $db->sql_in_set('t.forum_id', $forum_ids) . ' - AND t.topic_visibility = ' . ITEM_APPROVED . ' AND t.topic_status <> ' . ITEM_MOVED; } else @@ -1737,7 +1736,6 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false, $sql = 'SELECT t.forum_id, SUM(t.topic_posts) AS forum_posts, SUM(t.topic_posts_unapproved) AS forum_posts_unapproved, SUM(t.topic_posts_softdeleted) AS forum_posts_softdeleted FROM ' . TOPICS_TABLE . ' t WHERE ' . $db->sql_in_set('t.forum_id', $forum_ids) . ' - AND t.topic_visibility = ' . ITEM_APPROVED . ' AND t.topic_status <> ' . ITEM_MOVED . ' GROUP BY t.forum_id'; } |