[ticket/12174] Don't update the flag for a post without attachment

PHPBB3-12174
This commit is contained in:
Tristan Darricau 2014-05-09 00:50:34 +02:00
parent 712491697e
commit 93f901d078

View file

@ -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';