Skip to content
Extraits de code Groupes Projets
Valider ab1c1c3b rédigé par esj's avatar esj
Parcourir les fichiers

Eviter les warning dans les cas tordus.

parent 07128f37
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -609,6 +609,7 @@ function statistiques_forums_dist($duree, $interval, $type, $id_article, $serveu ...@@ -609,6 +609,7 @@ function statistiques_forums_dist($duree, $interval, $type, $id_article, $serveu
$order = 'date_heure'; $order = 'date_heure';
$interval = 24 * 3600; $interval = 24 * 3600;
$oldscore = 420; $oldscore = 420;
$oldlog = array();
while ($interval >= 1) { while ($interval >= 1) {
$log = statistiques_collecte_date('COUNT(*)', "(FLOOR(UNIX_TIMESTAMP($order) / $interval) * $interval)", 'spip_forum', $where, $serveur); $log = statistiques_collecte_date('COUNT(*)', "(FLOOR(UNIX_TIMESTAMP($order) / $interval) * $interval)", 'spip_forum', $where, $serveur);
if (count($log) > 3) break; if (count($log) > 3) break;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter