From 229e4cc037442242dc1d781ffed662bd75577573 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 14 Sep 2017 16:00:03 +0200 Subject: [PATCH] No more lightdb:delete --- build/lightdb/core/lightdb.php | 4 ++-- build/service/CalendarExtractor.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/lightdb/core/lightdb.php b/build/lightdb/core/lightdb.php index 3cf2a8f..7910be1 100644 --- a/build/lightdb/core/lightdb.php +++ b/build/lightdb/core/lightdb.php @@ -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; diff --git a/build/service/CalendarExtractor.php b/build/service/CalendarExtractor.php index 44c9fe2..6ae8801 100644 --- a/build/service/CalendarExtractor.php +++ b/build/service/CalendarExtractor.php @@ -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 */