CBA TBH
This commit is contained in:
@@ -112,7 +112,7 @@ $fetch_news = phpbb_fetch_posts($portal_config['portal_global_announcements_foru
|
|||||||
if($announcement < 0)
|
if($announcement < 0)
|
||||||
// Show the announcements overview
|
// Show the announcements overview
|
||||||
{
|
{
|
||||||
$count = sizeof($fetch_news)-1;
|
$count = $fetch_news['topic_count']
|
||||||
for ($i = 0; $i < $count; $i++)
|
for ($i = 0; $i < $count; $i++)
|
||||||
{
|
{
|
||||||
if( isset($fetch_news[$i]['striped']) && $fetch_news[$i]['striped'] == true )
|
if( isset($fetch_news[$i]['striped']) && $fetch_news[$i]['striped'] == true )
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ $fetch_news = phpbb_fetch_posts($portal_config['portal_news_forum'], $portal_con
|
|||||||
if($news < 0)
|
if($news < 0)
|
||||||
// Show the news overview
|
// Show the news overview
|
||||||
{
|
{
|
||||||
$count = sizeof($fetch_news)-1;
|
$count = $fetch_news['topic_count'];
|
||||||
for ($i = 0; $i < $count; $i++)
|
for ($i = 0; $i < $count; $i++)
|
||||||
{
|
{
|
||||||
if( isset($fetch_news[$i]['striped']) && $fetch_news[$i]['striped'] == true )
|
if( isset($fetch_news[$i]['striped']) && $fetch_news[$i]['striped'] == true )
|
||||||
|
|||||||
@@ -351,6 +351,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
|
|||||||
}
|
}
|
||||||
|
|
||||||
$posts['topic_icons'] = max($topic_icons);
|
$posts['topic_icons'] = max($topic_icons);
|
||||||
|
$posts['topic_count'] = $i;
|
||||||
|
|
||||||
if( $global_f < 1 )
|
if( $global_f < 1 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user