From 5a25ec9781bd2832060a3dd9140b208ad2d085b1 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Thu, 14 Apr 2022 14:38:21 -0400 Subject: [PATCH] fix --- app/Controllers/Savvy.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Controllers/Savvy.php b/app/Controllers/Savvy.php index dcb2dc6..1745ee4 100644 --- a/app/Controllers/Savvy.php +++ b/app/Controllers/Savvy.php @@ -196,15 +196,15 @@ class Savvy extends BaseController $this->logArray($res); $resLoginArray = json_decode($resLogin, true); $this->logArray($resLoginArray); - /* if (!empty($res)){ + if (!empty($resLoginArray)){ $data = json_decode($res, TRUE); - if (isset($data['accessToken'])){ + if (isset($$resLoginArray['accessToken'])){ - $res = UserProfile::floatUserProfile($data['accessToken']); - + $res = UserProfile::floatUserProfile($$resLoginArray['accessToken']); + $this->logArray($res); } - } */ + } } break;