diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-11-13 15:37:26 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-11-13 15:37:26 +0100 |
commit | 52bd8c307f388ac95d4bdd1bcdc52fdaa83ef4df (patch) | |
tree | d80a52a03d9e7919f2324770280aae2c6fc8cb03 /phpBB | |
parent | 18ca3a32bc9f5ec84b6abba3c79920d23df8c778 (diff) | |
download | forums-52bd8c307f388ac95d4bdd1bcdc52fdaa83ef4df.tar forums-52bd8c307f388ac95d4bdd1bcdc52fdaa83ef4df.tar.gz forums-52bd8c307f388ac95d4bdd1bcdc52fdaa83ef4df.tar.bz2 forums-52bd8c307f388ac95d4bdd1bcdc52fdaa83ef4df.tar.xz forums-52bd8c307f388ac95d4bdd1bcdc52fdaa83ef4df.zip |
[ticket/10365] Fix up S_POST_UNAPPROVED check, make it easier to read
PHPBB3-10365
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/mcp/mcp_topic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index 9cdb69ed99..d7cc1e795a 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -239,8 +239,8 @@ function mcp_topic_view($id, $mode, $action) 'MINI_POST_IMG' => ($post_unread) ? $user->img('icon_post_target_unread', 'UNREAD_POST') : $user->img('icon_post_target', 'POST'), - 'S_POST_REPORTED' => ($auth->acl_get('m_report', $topic_info['forum_id']) && $row['post_reported']) ? true : false, - 'S_POST_UNAPPROVED' => ($auth->acl_get('m_approve', $topic_info['forum_id']) && $row['post_approved']) ? false : true, + 'S_POST_REPORTED' => ($row['post_reported'] && $auth->acl_get('m_report', $topic_info['forum_id'])), + 'S_POST_UNAPPROVED' => (!$row['post_approved'] && $auth->acl_get('m_approve', $topic_info['forum_id'])), 'S_CHECKED' => (($submitted_id_list && !in_array(intval($row['post_id']), $submitted_id_list)) || in_array(intval($row['post_id']), $checked_ids)) ? true : false, 'S_HAS_ATTACHMENTS' => (!empty($attachments[$row['post_id']])) ? true : false, |