aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-05-09 00:50:34 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-09 00:50:34 +0200
commit93f901d078a706368925e50b60d9b086d7ce01e3 (patch)
tree333341561b2c4b7498eed8854c0802159abd8714 /phpBB
parent712491697e79e5af80df6ad8a563ea3a1601a1a4 (diff)
downloadforums-93f901d078a706368925e50b60d9b086d7ce01e3.tar
forums-93f901d078a706368925e50b60d9b086d7ce01e3.tar.gz
forums-93f901d078a706368925e50b60d9b086d7ce01e3.tar.bz2
forums-93f901d078a706368925e50b60d9b086d7ce01e3.tar.xz
forums-93f901d078a706368925e50b60d9b086d7ce01e3.zip
[ticket/12174] Don't update the flag for a post without attachment
PHPBB3-12174
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 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';