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;
$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"));