From ffb1668a1f077971e438a3a1baf57792b7e2fbd9 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Wed, 13 Apr 2022 19:38:21 -0400 Subject: [PATCH] fix --- app/Controllers/Savvy.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/Controllers/Savvy.php b/app/Controllers/Savvy.php index f401506..db2cbfe 100644 --- a/app/Controllers/Savvy.php +++ b/app/Controllers/Savvy.php @@ -109,7 +109,15 @@ class Savvy extends BaseController upload_file_call(); exit(); } else { - $in = $this->flatten(json_decode(file_get_contents('php://input'), true)); + // $in = $this->flatten(json_decode(file_get_contents('php://input'), true)); + $raw_json = file_get_contents("php://input"); + $raw_array = json_decode($raw_json, true); + if ($endpoint == "createuser") { + $in = $raw_array; + } else { + $in = $this->flatten($raw_array); + $this->logArray($in); + } } }