diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-05-09 00:50:34 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-05-09 00:50:34 +0200 |
commit | 93f901d078a706368925e50b60d9b086d7ce01e3 (patch) | |
tree | 333341561b2c4b7498eed8854c0802159abd8714 /phpBB | |
parent | 712491697e79e5af80df6ad8a563ea3a1601a1a4 (diff) | |
download | forums-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.php | 2 |
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'; |