aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-12-27 14:15:27 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-12-27 14:15:27 +0100
commit6acfe2a0cb584de823bc0633e6a864180effebf8 (patch)
tree38fd99900468ccea5ea20a59fa299cb4c3d08dc8 /phpBB/viewforum.php
parentMerge pull request #5036 from JoshyPHP/ticket/15442 (diff)
parent[ticket/15266] Update since, add changed, and use empty where applicable (diff)
downloadphpbb-6acfe2a0cb584de823bc0633e6a864180effebf8.tar.gz
phpbb-6acfe2a0cb584de823bc0633e6a864180effebf8.tar.bz2
phpbb-6acfe2a0cb584de823bc0633e6a864180effebf8.zip
Merge pull request #4868 from javiexin/ticket/15266
[ticket/15266] Fix events in content_visibility
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 79d75a18f8..e4cf08d548 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -538,7 +538,7 @@ if ($forum_data['forum_type'] == FORUM_POST)
while ($row = $db->sql_fetchrow($result))
{
- if ($row['topic_visibility'] != ITEM_APPROVED && !$auth->acl_get('m_approve', $row['forum_id']))
+ if (!$phpbb_content_visibility->is_visible('topic', $row['forum_id'], $row))
{
// Do not display announcements that are waiting for approval or soft deleted.
continue;