Les archives de FluxBB.fr
Vous n'êtes pas identifié(e).
Ou, plus propre, remplacer par :
$result_header = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error());
$nbr_rapports = $db->result($result_header);
if ($nbr_rapports > 0)
{
if ($nbr_rapports == 1)
$tpl_temp .= "\n\t\t\t\t".'<li class="reportlink"><span><strong><a href="admin_reports.php">Il y a un nouveau signalement</a></strong></span></li>';
else
$tpl_temp .= "\n\t\t\t\t".'<li class="reportlink"><span><strong><a href="admin_reports.php">Il y a '.$nbr_rapports.' nouveaux signalements</a></strong></span></li>';
}Dernière modification par Loic DL (08-10-2011 05:00:10)
Hors ligne