Bugfic comptage des lignes

This commit is contained in:
Rodolphe Quiedeville 2007-07-11 11:45:05 +00:00
parent 915acd0247
commit 4c7ea633c9

View File

@ -54,7 +54,7 @@ class CdrFormatFructidor
$badformat = 0; $badformat = 0;
$error = 0; $error = 0;
$i = 0; $i = 0;
$line = 1; $line = 0;
$hf = fopen ($file, "r"); $hf = fopen ($file, "r");
while (!feof($hf)) while (!feof($hf))
@ -81,9 +81,9 @@ class CdrFormatFructidor
dolibarr_syslog("CdrFormatFructidor::ReadFile Mauvais format de fichier ligne $line", LOG_ERR); dolibarr_syslog("CdrFormatFructidor::ReadFile Mauvais format de fichier ligne $line", LOG_ERR);
$badformat++; $badformat++;
} }
}
$line++; $line++;
} }
}
fclose($hf); fclose($hf);
array_push($this->messages,array('info',"$line lignes lues dans le fichier")); array_push($this->messages,array('info',"$line lignes lues dans le fichier"));
if ($badformat > 0) if ($badformat > 0)