aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorv12mike <github@ingenious.co.nz>2019-10-06 09:51:45 -0400
committerMarc Alexander <admin@m-a-styles.de>2019-11-21 13:44:22 +0100
commit8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd (patch)
tree7d3e2c3fb83ca1e7e7e5610b08e0afdc2726de16 /phpBB
parent15da5b108e6b93fd0059b1b523b68eccec1cce5c (diff)
downloadforums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.tar
forums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.tar.gz
forums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.tar.bz2
forums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.tar.xz
forums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.zip
[ticket/9837] Display unapproved posts to their authors
Change code order to improve efficiency. PHPBB3-9837
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/content_visibility.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/content_visibility.php b/phpBB/phpbb/content_visibility.php
index bea49c0be1..457b53653d 100644
--- a/phpBB/phpbb/content_visibility.php
+++ b/phpBB/phpbb/content_visibility.php
@@ -147,7 +147,7 @@ class content_visibility
$visibility = $data[$mode . '_visibility'];
$poster_key = ($mode === 'topic') ? 'topic_poster' : 'poster_id';
$is_visible = ($visibility == ITEM_APPROVED) ||
- ($this->config['display_unapproved_posts'] &&
+ ($this->config['display_unapproved_posts'] &&
($this->user->data['user_id'] <> ANONYMOUS) &&
($visibility == ITEM_UNAPPROVED || $visibility == ITEM_REAPPROVE) &&
($this->user->data['user_id'] === $data[$poster_key])) ||