diff --git a/batch/enrichissement.php b/batch/enrichissement.php index 4b13835e..a1e98fdb 100644 --- a/batch/enrichissement.php +++ b/batch/enrichissement.php @@ -429,7 +429,7 @@ if ( $opts->reprise ) { $outFile = $path->data.'/export/'.$commande->fichierOut; $rowReprise = 0; - $fp = fopen($outFile, 'w'); + $fp = fopen($outFile, 'r+'); while (($data = fgetcsv($fp, 0, ',', '"')) !== FALSE) { $rowReprise++; }