aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorRichard McGirr <rmcgirr83@gmail.com>2015-11-26 05:23:18 -0500
committerRichard McGirr <rmcgirr83@gmail.com>2015-11-26 05:23:18 -0500
commit4966d6c9139108c561720255f17c4f3efe58b60b (patch)
tree1116891fa58739a2f82dc2c129484ffe9f743160 /phpBB/viewtopic.php
parent4ea325029b01d97aae19c33ed25d08f014cce20d (diff)
downloadforums-4966d6c9139108c561720255f17c4f3efe58b60b.tar
forums-4966d6c9139108c561720255f17c4f3efe58b60b.tar.gz
forums-4966d6c9139108c561720255f17c4f3efe58b60b.tar.bz2
forums-4966d6c9139108c561720255f17c4f3efe58b60b.tar.xz
forums-4966d6c9139108c561720255f17c4f3efe58b60b.zip
[ticket/14313] Check for item approved explicitly
PHPBB3-14313
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 2e59ed1b45..fcc44abc33 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1822,7 +1822,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
);
// Only display the quote button if the post is quotable. Posts not approved are not quotable.
- $quote_allowed = ($quote_allowed && $row['post_visibility']) ? true : false;
+ $quote_allowed = ($quote_allowed && $row['post_visibility'] == ITEM_APPROVED) ? true : false;
$delete_allowed = $force_delete_allowed || ($user->data['is_registered'] && (
($auth->acl_get('m_delete', $forum_id) || ($auth->acl_get('m_softdelete', $forum_id) && $row['post_visibility'] != ITEM_DELETED)) ||