No more lightdb:delete v2
This commit is contained in:
parent
229e4cc037
commit
33f0e967bb
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue