diff --git a/ecrire/statistiques_lang.php3 b/ecrire/statistiques_lang.php3 index 4f7dfba296a59052c37ac2a4d052a7a1c57afbf2..a64407b9875ea3a0c40ff797b5af10c52f8a9ffb 100644 --- a/ecrire/statistiques_lang.php3 +++ b/ecrire/statistiques_lang.php3 @@ -145,9 +145,10 @@ debut_cadre_enfonce("langues-24.gif"); $query = "SELECT SUM(".$critere.") AS total_visites FROM spip_articles"; $result = spip_query($query); $visites = 1; - if ($row = spip_fetch_array($result)) { + if ($row = spip_fetch_array($result)) $total_visites = $row['total_visites']; - } + else + $total_visites = 1; echo "<p>";