From 4c7ea633c9ac2da8a1ba6b5403af8021f78c24c0 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 11 Jul 2007 11:45:05 +0000 Subject: [PATCH] Bugfic comptage des lignes --- .../fournisseur/cdrformat/cdrformat.fructidor.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/fournisseur/cdrformat/cdrformat.fructidor.class.php b/htdocs/telephonie/fournisseur/cdrformat/cdrformat.fructidor.class.php index 69472da43f2..ab639da958e 100644 --- a/htdocs/telephonie/fournisseur/cdrformat/cdrformat.fructidor.class.php +++ b/htdocs/telephonie/fournisseur/cdrformat/cdrformat.fructidor.class.php @@ -54,7 +54,7 @@ class CdrFormatFructidor $badformat = 0; $error = 0; $i = 0; - $line = 1; + $line = 0; $hf = fopen ($file, "r"); while (!feof($hf)) @@ -81,8 +81,8 @@ class CdrFormatFructidor dolibarr_syslog("CdrFormatFructidor::ReadFile Mauvais format de fichier ligne $line", LOG_ERR); $badformat++; } + $line++; } - $line++; } fclose($hf); array_push($this->messages,array('info',"$line lignes lues dans le fichier"));