CVS: spip inc-stats.php3,1.55,1.56

Update of /home/spip-cvs/spip
In directory miel:/tmp/cvs-serv10236

Modified Files:
  inc-stats.php3
Log Message:
bug décalage stats

Index: inc-stats.php3

RCS file: /home/spip-cvs/spip/inc-stats.php3,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- inc-stats.php3 28 Sep 2003 14:01:35 -0000 1.55
+++ inc-stats.php3 10 Oct 2003 22:50:40 -0000 1.56
@@ -81,13 +81,13 @@
   }

   // nettoyage du matin
- if (date("Y-m-d") <> lire_meta("date_statistiques")) {
+ if (date("Y-m-d") <> ($last_date = lire_meta("date_statistiques"))) {
     if (timeout('archiver_stats')) {
       include_ecrire("inc_meta.php3");
       include_ecrire("inc_statistiques.php3");
       ecrire_meta("date_statistiques", date("Y-m-d"));
       ecrire_metas();
- calculer_visites(lire_meta("date_statistiques"));
+ calculer_visites($last_date);

       if (lire_meta('activer_statistiques_ref') == 'oui') {
         // purger les referers du jour