From 93f901d078a706368925e50b60d9b086d7ce01e3 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Fri, 9 May 2014 00:50:34 +0200 Subject: [PATCH] [ticket/12174] Don't update the flag for a post without attachment PHPBB3-12174 --- phpBB/phpbb/content_visibility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';