From 6da8223209d9c9b6135be050afc9231e3d1b7c1f Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 10 Feb 2024 17:13:38 +0100 Subject: [PATCH] 1.4.23 Fix bug dot class --- core/class/jsondb/Dot.class.php | 2 +- core/class/jsondb/JsonDb.class.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/class/jsondb/Dot.class.php b/core/class/jsondb/Dot.class.php index 29b5dfa..98def5e 100644 --- a/core/class/jsondb/Dot.class.php +++ b/core/class/jsondb/Dot.class.php @@ -141,7 +141,7 @@ class Dot implements \ArrayAccess, \Iterator, \Countable } elseif (is_array($key)) { // Iterate array of paths foreach ($key as $k) { - self::delete($k); + delete($k); } } } diff --git a/core/class/jsondb/JsonDb.class.php b/core/class/jsondb/JsonDb.class.php index b90ac67..3e3b26c 100644 --- a/core/class/jsondb/JsonDb.class.php +++ b/core/class/jsondb/JsonDb.class.php @@ -142,11 +142,6 @@ class JsonDb extends \Prowebcraft\Dot */ public function save() { - //$v = json_encode($this->data, JSON_UNESCAPED_UNICODE ); - if ($this->data === null) { - error_log('Tentative d\'enregistrer de données nulles, enregistrement annulé.'); - exit('Tentative d\'enregistrer de données nulles, enregistrement annulé.'); - } $v = json_encode($this->data, JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT); $l = strlen($v); $t = 0;