Commit 002bfc01 authored by Nicolas Dumoulin's avatar Nicolas Dumoulin
Browse files

Fix for lines without nb_pages

parent 3500f4a5
......@@ -167,7 +167,11 @@
$ligne["date"]=$data[0];
$ligne["section"]=$data[3];
$ligne["compteur"]=intval($data[4]);
$ligne["nb_pages"]=intval($data[5]);
$nb_pages=intval($data[5]);
if ($nb_pages==0) {
$nb_pages=1+(int)($ligne["compteur"]/200);
}
$ligne["nb_pages"]=$nb_pages;
$ligne["is_last"]=$data[6];
if($bdd[$data[3]]==null){
$bdd[$data[3]]=array($ligne);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment