aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-08-15 16:33:21 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-08-15 16:33:21 +0000
commit95267c1f8442767cafa68459f470b4e58a4572f5 (patch)
tree023996f337c243d1374b31e3e3d7e265eaca0cc4 /phpBB/viewtopic.php
parent3623207f8835a1751432958556db0baa24c10822 (diff)
downloadforums-95267c1f8442767cafa68459f470b4e58a4572f5.tar
forums-95267c1f8442767cafa68459f470b4e58a4572f5.tar.gz
forums-95267c1f8442767cafa68459f470b4e58a4572f5.tar.bz2
forums-95267c1f8442767cafa68459f470b4e58a4572f5.tar.xz
forums-95267c1f8442767cafa68459f470b4e58a4572f5.zip
now display_notice is working as expected.
git-svn-id: file:///svn/phpbb/trunk@4408 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php3
1 files changed, 2 insertions, 1 deletions
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