diff --git a/build/lightdb/core/lightdb.php b/build/lightdb/core/lightdb.php index 7aaf32e..07693dd 100644 --- a/build/lightdb/core/lightdb.php +++ b/build/lightdb/core/lightdb.php @@ -124,7 +124,7 @@ /* (2) On ajoute les données aux fichier */ $json_data = json_encode($data); - $this->driver->seek($this->line); + $this->driver->seek($already_line); $this->line++; $written = $this->driver->fwrite( $json_data.PHP_EOL );