From 18da33c986f8879d7f0ff19fac9e752490485054 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Wed, 13 Apr 2022 19:42:09 -0400 Subject: [PATCH] fix --- app/Controllers/Savvy.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Controllers/Savvy.php b/app/Controllers/Savvy.php index db2cbfe..576cd17 100644 --- a/app/Controllers/Savvy.php +++ b/app/Controllers/Savvy.php @@ -32,6 +32,7 @@ class Savvy extends BaseController }; */ + $inx=[]; $encryptionAlg = "aes-256-ctr"; // $savvyext->cfgReadChar('encryption.algorithm'); $encryptionKey = "1234567890abcdef1234567890abcdef"; // $savvyext->cfgReadChar('encryption.key'); $encryptionIV = "1234567890abcdef"; // $savvyext->cfgReadChar('encryption.iv'); @@ -113,10 +114,10 @@ class Savvy extends BaseController $raw_json = file_get_contents("php://input"); $raw_array = json_decode($raw_json, true); if ($endpoint == "createuser") { - $in = $raw_array; + $inx = $raw_array; } else { - $in = $this->flatten($raw_array); - $this->logArray($in); + $inx = $this->flatten($raw_array); + $this->logArray($inx); } } } @@ -134,7 +135,7 @@ class Savvy extends BaseController // log_message('critical', json_encode($in) ); // log_message('critical', json_encode($_POST) ); - $inx = $_POST; + // $inx = $_POST; $this->logArray($inx); // Decrypt the input if (isset($inx['encrypted_payload'])) {