This commit is contained in:
Ice
2008-08-16 22:18:16 +00:00
parent d705d84d66
commit 46b09ba6ea
3 changed files with 3 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ $fetch_news = phpbb_fetch_posts($portal_config['portal_global_announcements_foru
if($announcement < 0)
// Show the announcements overview
{
$count = sizeof($fetch_news)-1;
$count = $fetch_news['topic_count']
for ($i = 0; $i < $count; $i++)
{
if( isset($fetch_news[$i]['striped']) && $fetch_news[$i]['striped'] == true )

View File

@@ -107,7 +107,7 @@ $fetch_news = phpbb_fetch_posts($portal_config['portal_news_forum'], $portal_con
if($news < 0)
// Show the news overview
{
$count = sizeof($fetch_news)-1;
$count = $fetch_news['topic_count'];
for ($i = 0; $i < $count; $i++)
{
if( isset($fetch_news[$i]['striped']) && $fetch_news[$i]['striped'] == true )

View File

@@ -351,6 +351,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
}
$posts['topic_icons'] = max($topic_icons);
$posts['topic_count'] = $i;
if( $global_f < 1 )
{