Someone helped me to solve the problem. Here is the code from what I had to change:
//////////////////// REPLACE : ///////////////
if (!empty($sfdb))
{
foreach ($sfdb as $sub_forums)
{
if ($cur_forum['fid'] == $sub_forums[0] && !$pun_user['is_guest'] && forum_is_new($cur_forum['fid'], $cur_forum['last_post']))
{
$item_status = 'inew';
$icon_text = $lang_common['New icon'];
$icon_type = 'icon inew';
}
}
}
//////////////////// WITH: ///////////////
if (!empty($sfdb)) {
foreach ($sfdb as $sub_forums) {
if (!$pun_user['is_guest']) {
if ($cur_forum['fid'] == $sub_forums[0]) {
if (forum_is_new($cur_forum['fid'], $cur_forum['last_post']) || forum_is_new($sub_forums[6], $sub_forums[5])) {
$item_status = 'inew';
$icon_text = $lang_common['New icon'];
$icon_type = 'icon inew';
}
}
}
}
}
If anyone is interested in can send my index.php file.