No more lightdb:delete v2

This commit is contained in:
xdrm-brackets 2017-09-14 16:03:03 +02:00
parent 229e4cc037
commit 33f0e967bb
1 changed files with 4 additions and 2 deletions

View File

@ -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;