diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 3d136a1b55..ea1b413003 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -283,6 +283,9 @@ $topic_mod .= ($auth->acl_gets('m_delete', 'a_', $forum_id)) ? '' : '';
$topic_mod .= ($auth->acl_gets('m_split', 'a_', $forum_id)) ? '' : '';
$topic_mod .= ($auth->acl_gets('m_merge', 'a_', $forum_id)) ? '' : '';
+$topic_mod .= (($topic_type != POST_ANNOUNCE) && $auth->acl_gets('m_', 'a_', $forum_id)) ? '' : '';
+$topic_mod .= (($topic_type != POST_STICKY) && $auth->acl_gets('m_', 'a_', $forum_id)) ? '' : '';
+$topic_mod .= (($topic_type != POST_NORMAL) && $auth->acl_gets('m_', 'a_', $forum_id)) ? '' : '';
// If we've got a hightlight set pass it on to pagination.
@@ -856,7 +859,7 @@ if ($row = $db->sql_fetchrow($result))
'YIM_IMG' => $user_cache[$poster_id]['yim_img'],
'YIM' => $user_cache[$poster_id]['yim'],
- 'S_POST_REPORTED' => (!empty($row['post_reported']) && $auth->acl_gets('m_', 'a_', $forum_id)) ? TRUE : FALSE,
+ 'S_POST_REPORTED' => ($row['post_reported'] && $auth->acl_gets('m_', 'a_', $forum_id)) ? TRUE : FALSE,
'U_REPORT' => "report.$phpEx$SID&p=" . $row['post_id'],
'U_MCP_REPORT' => "mcp.$phpEx$SID&mode=post_details&p=" . $row['post_id'],
// no img yet as I could not get the subSilver to work with PSP - Ashe
@@ -868,7 +871,7 @@ if ($row = $db->sql_fetchrow($result))
'S_ROW_COUNT' => $i++,
- 'S_POST_UNAPPROVED' => (!empty($row['post_approved'])) ? TRUE : FALSE,
+ 'S_POST_UNAPPROVED' => ($row['post_approved']) ? FALSE : TRUE,
'U_MCP_APPROVE' => "mcp.$phpEx$SID&mode=approve&p=" . $row['post_id'],
'U_MINI_POST' => $mini_post_url,