diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-10-22 14:55:10 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-10-22 14:55:10 +0200 |
| commit | 5925a17894cecb9fdf2d5c58dcdeb533fb80e8f7 (patch) | |
| tree | 631492f0676970371ea538d881fbe89997fed1aa /phpBB/search.php | |
| parent | 168dd29f24843e97182c894a5d43a7d38f8a195c (diff) | |
| download | forums-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/search.php')
| -rw-r--r-- | phpBB/search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index 6d337fd93c..2d15687a9a 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -868,7 +868,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) $unread_topic = (isset($topic_tracking_info[$forum_id][$row['topic_id']]) && $row['topic_last_post_time'] > $topic_tracking_info[$forum_id][$row['topic_id']]) ? true : false; $topic_unapproved = ($row['topic_visibility'] == ITEM_UNAPPROVED && $auth->acl_get('m_approve', $forum_id)) ? true : false; - $posts_unapproved = ($row['topic_visibility'] == ITEM_APPROVED && $row['topic_replies'] < $row['topic_replies_real'] && $auth->acl_get('m_approve', $forum_id)) ? true : false; + $posts_unapproved = ($row['topic_visibility'] == ITEM_APPROVED && $row['topic_posts_unapproved'] && $auth->acl_get('m_approve', $forum_id)) ? true : false; $topic_deleted = ($row['topic_visibility'] == ITEM_DELETED) ? true : false; $u_mcp_queue = ($topic_unapproved || $posts_unapproved) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . "&t=$result_topic_id", true, $user->session_id) : ''; |
