diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-11-26 14:27:54 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-11-26 14:27:54 +0100 |
commit | 1a367062d3e6b1670f8c47ed603c4221e8303b87 (patch) | |
tree | 1116891fa58739a2f82dc2c129484ffe9f743160 | |
parent | ea9b97c8a1db1a287fea2d4dda97acb3b753a4cf (diff) | |
parent | 4966d6c9139108c561720255f17c4f3efe58b60b (diff) | |
download | forums-1a367062d3e6b1670f8c47ed603c4221e8303b87.tar forums-1a367062d3e6b1670f8c47ed603c4221e8303b87.tar.gz forums-1a367062d3e6b1670f8c47ed603c4221e8303b87.tar.bz2 forums-1a367062d3e6b1670f8c47ed603c4221e8303b87.tar.xz forums-1a367062d3e6b1670f8c47ed603c4221e8303b87.zip |
Merge pull request #4045 from RMcGirr83/ticket_14313
[ticket/14313] Check for item approved explicitly
-rw-r--r-- | phpBB/viewtopic.php | 2 |
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)) || |