News/Announcements permission bug

This commit is contained in:
Ice
2008-02-03 17:37:07 +00:00
parent a15613473e
commit c1f50e0c87

View File

@@ -86,7 +86,7 @@ function phpbb_fetch_posts($forum_from, $number_of_posts, $text_length, $time, $
if( sizeof($forum_from) ) if( sizeof($forum_from) )
{ {
foreach( $allow_access as $acc_id => $acc_data ) foreach( $allow_access as $acc_id )
{ {
if( in_array($acc_id, $forum_from ) ) if( in_array($acc_id, $forum_from ) )
{ {
@@ -100,7 +100,7 @@ function phpbb_fetch_posts($forum_from, $number_of_posts, $text_length, $time, $
} }
else else
{ {
foreach( $allow_access as $acc_id => $acc_data ) foreach( $allow_access as $acc_id )
{ {
$str_where .= "t.forum_id = $acc_id OR "; $str_where .= "t.forum_id = $acc_id OR ";
@@ -245,8 +245,8 @@ function phpbb_fetch_posts($forum_from, $number_of_posts, $text_length, $time, $
$bbcode->bbcode_second_pass($message, $row['bbcode_uid'], $row['bbcode_bitfield']); $bbcode->bbcode_second_pass($message, $row['bbcode_uid'], $row['bbcode_bitfield']);
} }
$message = smiley_text($message); // Always process smilies after parsing bbcodes $message = smiley_text($message); // Always process smilies after parsing bbcodes
$posts[$i]['post_text']= ap_validate($message);
$posts[$i]['post_text'] = ap_validate($message);
$posts[$i]['topic_id'] = $row['topic_id']; $posts[$i]['topic_id'] = $row['topic_id'];
$posts[$i]['topic_last_post_id'] = $row['topic_last_post_id']; $posts[$i]['topic_last_post_id'] = $row['topic_last_post_id'];
$posts[$i]['forum_id'] = $row['forum_id']; $posts[$i]['forum_id'] = $row['forum_id'];
@@ -260,9 +260,9 @@ function phpbb_fetch_posts($forum_from, $number_of_posts, $text_length, $time, $
$posts[$i]['user_user_colour'] = $row['user_colour']; $posts[$i]['user_user_colour'] = $row['user_colour'];
$posts[$i]['poll'] = ($row['poll_title']) ? true : false; $posts[$i]['poll'] = ($row['poll_title']) ? true : false;
$posts[$i]['attachment'] = ($row['topic_attachment']) ? true : false; $posts[$i]['attachment'] = ($row['topic_attachment']) ? true : false;
$posts[$i]['topic_views'] = ($row['topic_views']); $posts[$i]['topic_views'] = $row['topic_views'];
$posts[$i]['forum_name'] = ($row['forum_name']); $posts[$i]['forum_name'] = $row['forum_name'];
$posts[$i]['global_id'] = ($global_f); $posts[$i]['global_id'] = $global_f;
$i++; $i++;
} }