No more lightdb:delete

This commit is contained in:
xdrm-brackets 2017-09-14 16:00:03 +02:00
parent 6464bd57c9
commit 229e4cc037
2 changed files with 3 additions and 3 deletions

View File

@ -115,8 +115,8 @@
*/
public function insert($key, $data){
/* (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) )
// return true;
$key = (string) $key;

View File

@ -218,7 +218,7 @@
/* [4] Save db changes
=========================================================*/
/* (1) Update data */
$ldb->delete($this->d_uid);
// $ldb->delete($this->d_uid);
$ldb->insert($this->d_uid, $d_db);
/* (2) Close connection */