From 22d7e65bb73741eb5511177bd53d9cde751104ee Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 14 Sep 2017 16:03:55 +0200 Subject: [PATCH] No more lightdb:delete v3 --- build/lightdb/core/lightdb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );