From e690ad850248ff15dc71f724430e1d497cf32839 Mon Sep 17 00:00:00 2001 From: Matthieu Marcillaud Date: Fri, 14 Jan 2022 21:09:47 +0100 Subject: [PATCH] Rector sur Plan avec config PHP 7.4 --- action/deplacer_objets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action/deplacer_objets.php b/action/deplacer_objets.php index dbef8c4..2590e73 100644 --- a/action/deplacer_objets.php +++ b/action/deplacer_objets.php @@ -97,7 +97,7 @@ function action_deplacer_objets_dist() { function plan_json_envoi($data) { header('Content-Type: application/json; charset=' . $GLOBALS['meta']['charset']); - echo json_encode($data); + echo json_encode($data, JSON_THROW_ON_ERROR); } function plan_json_erreur($msg) {