From 4966d6c9139108c561720255f17c4f3efe58b60b Mon Sep 17 00:00:00 2001 From: Richard McGirr Date: Thu, 26 Nov 2015 05:23:18 -0500 Subject: [PATCH] [ticket/14313] Check for item approved explicitly PHPBB3-14313 --- phpBB/viewtopic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) ||