aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_forum.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-22 14:55:10 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-22 14:55:10 +0200
commit5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7 (patch)
tree631492f0676970371ea538d881fbe89997fed1aa /phpBB/includes/mcp/mcp_forum.php
parent168dd29f24843e97182c894a5d43a7d38f8a195c (diff)
downloadforums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.tar
forums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.tar.gz
forums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.tar.bz2
forums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.tar.xz
forums-5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7.zip
[feature/soft-delete] Fix some more uses of topic_replies_real
PHPBB3-9567
Diffstat (limited to 'phpBB/includes/mcp/mcp_forum.php')
-rw-r--r--phpBB/includes/mcp/mcp_forum.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_forum.php b/phpBB/includes/mcp/mcp_forum.php
index c04a4d37d4..bacc4c444c 100644
--- a/phpBB/includes/mcp/mcp_forum.php
+++ b/phpBB/includes/mcp/mcp_forum.php
@@ -222,7 +222,7 @@ function mcp_forum_view($id, $mode, $action, $forum_info)
// @todo:
$topic_unapproved = ($row['topic_visibility'] == ITEM_UNAPPROVED && $auth->acl_get('m_approve', $row['forum_id'])) ? true : false;
- $posts_unapproved = ($row['topic_visibility'] == ITEM_APPROVED && $row['topic_replies'] < $row['topic_replies_real'] && $auth->acl_get('m_approve', $row['forum_id'])) ? true : false;
+ $posts_unapproved = ($row['topic_visibility'] == ITEM_APPROVED && $row['topic_posts_unapproved'] && $auth->acl_get('m_approve', $row['forum_id'])) ? true : false;
$topic_deleted = ($row['topic_visibility'] == ITEM_DELETED) ? true : false;
$u_mcp_queue = ($topic_unapproved || $posts_unapproved) ? $url . '&amp;i=queue&amp;mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . '&amp;t=' . $row['topic_id'] : '';
$u_mcp_queue = (!$u_mcp_queue && $topic_deleted) ? $url . 'i=queue&amp;mode=deleted_posts&amp;t=' . $topic_id : $u_mcp_queue;