From 9062b8a0493ffe7e165f1523a59855c7c8e11377 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Mon, 5 Jan 2004 20:03:05 +0000 Subject: [PATCH] bug 0 visites division par...0 (Laurent Abbal) --- ecrire/statistiques_lang.php3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ecrire/statistiques_lang.php3 b/ecrire/statistiques_lang.php3 index 4f7dfba296..a64407b987 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>"; -- GitLab