From c4e150af97b6af9156b4002eaceb0c2a3e2b1244 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 10 Mar 2023 11:29:43 +0100 Subject: [PATCH] json_encode --- core/class/jsondb/JsonDb.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/jsondb/JsonDb.class.php b/core/class/jsondb/JsonDb.class.php index 100e752b..cac7b89a 100644 --- a/core/class/jsondb/JsonDb.class.php +++ b/core/class/jsondb/JsonDb.class.php @@ -145,7 +145,7 @@ class JsonDb extends \Prowebcraft\Dot $lenght = strlen(json_encode($this->data)); $try = 0; while ($try < 5) { - $written = file_put_contents($this->db, json_encode($this->data), JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | LOCK_EX); // Multi user get a locker + $written = file_put_contents($this->db, json_encode($this->data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | LOCK_EX)); // Multi user get a locker if ($written == $lenght) { break; }