I've got it!
#
#-----[ OPEN ]---------------------------------
#
index.php
#
#-----[ FIND ]---------------------------------
#
[qcode]unset($categories);[/qcode]
#
#-----[ AFTER, ADD ]------------------------------------------
#
[qcode]//-----------------------------------------------------
// ----- Show news ------------------------------------
//-----------------------------------------------------
if (!isset($config['news_home_display']) || $config['news_home_display'] == 1)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." ORDER BY news_date DESC LIMIT 0, ".((isset($config['news_nb']))?$config['news_nb']:5);
else if ($config['news_home_display'] == 2)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." WHERE news_date > ".(time() - ((isset($config['news_nb_days']))?$config['news_nb_days']:15)*86400)." ORDER BY news_date DESC";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);
if (!$num_rows) {
$news = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
$news .= $lang['no_news'];
$news .= "</td></tr></table>";
}
else {
$news = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
while ($image_row = $site_db->fetch_array($result))
{
$news .= "<tr class=\"imagerow1\">\n";
$news .= "<td width=\"100%\" valign=\"top\">\n";
$new_is_new = ($image_row['news_date'] > time() - ((isset($config['news_cutoff']))?$config['news_cutoff']:3)*86400);
$news .= "<b>".$image_row['news_title']."</b>".(($new_is_new)?" <sup class=\"new\">".$lang['new']."</sup>":"").sprintf($lang['news_posted_by'], $image_row['user_name'], format_date($config['date_format']." ".$config['time_format'], $image_row['news_date']));
$news .= "\n</td>\n";
$news .= "</tr>\n";
$news .= "<tr class=\"imagerow2\">\n";
$news .= "<td width=\"100%\" valign=\"top\">\n<br/>";
$news .= format_text($image_row['news_text'], ((isset($config['news_html']))?$config['news_html']:0), 0, ((isset($config['news_bbcode']))?$config['news_bbcode']:1), ((isset($config['news_bbcodeimg']))?$config['news_bbcodeimg']:1));
$news .= "<br/><br/>\n</td>\n";
$news .= "</tr>\n";
} // end while
$news .= "</table>\n";
} // end else
$site_template->register_vars(array(
"news" => $news,
"news_archives" => $lang['news_archive'],
"news_main" => $lang['news_main']
));
unset($news);[/qcode]
Now it's working fine by me...