1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-25 12:35:55 +02:00

Merge branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/10437] Do not display announcements that are waiting for approval
This commit is contained in:
Andreas Fischer
2011-11-13 15:35:27 +01:00

View File

@ -391,6 +391,12 @@ if ($forum_data['forum_type'] == FORUM_POST)
while ($row = $db->sql_fetchrow($result))
{
if (!$row['topic_approved'] && !$auth->acl_get('m_approve', $row['forum_id']))
{
// Do not display announcements that are waiting for approval.
continue;
}
$rowset[$row['topic_id']] = $row;
$announcement_list[] = $row['topic_id'];