No more lightdb:delete
This commit is contained in:
parent
6464bd57c9
commit
229e4cc037
|
@ -115,8 +115,8 @@
|
||||||
*/
|
*/
|
||||||
public function insert($key, $data){
|
public function insert($key, $data){
|
||||||
/* (1) On vérifie que la clé est unique */
|
/* (1) On vérifie que la clé est unique */
|
||||||
if( array_key_exists($key, $this->index) )
|
// if( array_key_exists($key, $this->index) )
|
||||||
return true;
|
// return true;
|
||||||
|
|
||||||
$key = (string) $key;
|
$key = (string) $key;
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,7 @@
|
||||||
/* [4] Save db changes
|
/* [4] Save db changes
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
/* (1) Update data */
|
/* (1) Update data */
|
||||||
$ldb->delete($this->d_uid);
|
// $ldb->delete($this->d_uid);
|
||||||
$ldb->insert($this->d_uid, $d_db);
|
$ldb->insert($this->d_uid, $d_db);
|
||||||
|
|
||||||
/* (2) Close connection */
|
/* (2) Close connection */
|
||||||
|
|
Loading…
Reference in New Issue