diff --git a/build/lightdb/core/lightdb.php b/build/lightdb/core/lightdb.php index 7910be1..7aaf32e 100644 --- a/build/lightdb/core/lightdb.php +++ b/build/lightdb/core/lightdb.php @@ -114,9 +114,11 @@ * */ public function insert($key, $data){ + $already_line = $this->line; + /* (1) On vérifie que la clé est unique */ - // if( array_key_exists($key, $this->index) ) - // return true; + if( !array_key_exists($key, $this->index) ){ + $already_line = $this->index[$key]['line']; $key = (string) $key;