noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 58/219: Correct : json function


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 58/219: Correct : json function
Date: Mon, 18 Dec 2017 13:22:38 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 10eb829204c3345f5a78f84a2278a0c4dceeda0a
Author: Dany De Bontridder <address@hidden>
Date:   Mon Sep 25 23:30:58 2017 +0200

    Correct : json function
---
 include/lib/manage_table_sql.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/lib/manage_table_sql.class.php 
b/include/lib/manage_table_sql.class.php
index 8c63542..b428d8e 100644
--- a/include/lib/manage_table_sql.class.php
+++ b/include/lib/manage_table_sql.class.php
@@ -268,7 +268,7 @@ function check()
     function add_json_param($p_attribute,$p_value) {
         $x=json_decode($this->json_parameter,TRUE);
         $x[$p_attribute]=$p_value;
-        $this->json_parameter=json_encode($x);
+        $this->json_parameter=json_encode($x, 
JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_NUMERIC_CHECK);
     }
     function get_json()
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]