From 95267c1f8442767cafa68459f470b4e58a4572f5 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 15 Aug 2003 16:33:21 +0000 Subject: [PATCH] now display_notice is working as expected. git-svn-id: file:///svn/phpbb/trunk@4408 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewtopic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 441808f020..ead9fa29e4 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -725,6 +725,7 @@ do 'post_edit_count' => $row['post_edit_count'], 'post_edit_time' => $row['post_edit_time'], 'icon_id' => $row['icon_id'], + 'post_attachment' => $row['post_attachment'], 'post_approved' => $row['post_approved'], 'post_reported' => $row['post_reported'], 'post_text' => $row['post_text'], @@ -1134,7 +1135,7 @@ foreach ($rowset as $i => $row) 'S_HAS_ATTACHMENTS' => (!empty($attachments[$row['post_id']])) ? TRUE : FALSE, 'S_POST_UNAPPROVED' => ($row['post_approved']) ? FALSE : TRUE, 'S_POST_REPORTED' => ($row['post_reported'] && $auth->acl_get('m_', $forum_id)) ? TRUE : FALSE, - 'S_DISPLAY_NOTICE' => $display_notice) + 'S_DISPLAY_NOTICE' => $display_notice && $row['post_attachment']) ); // Process Attachments for this post