aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/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 c587c2b07b..42bf8cf44b 100644
--- a/phpBB/phpbb/content_visibility.php
+++ b/phpBB/phpbb/content_visibility.php
@@ -456,7 +456,7 @@ class content_visibility
$update_topic_attachments_flag = true;
$topic_update_array[] = 'topic_attachment = 1';
}
- else if (!$has_attachment)
+ else if (!$has_attachment && $visibility != ITEM_APPROVED)
{
$update_topic_attachments_flag = true;
$topic_update_array[] = 'topic_attachment = 0';