From 5109c7846359d16ffc6c2467862eab269a01273c Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Thu, 14 Apr 2022 14:53:15 -0400 Subject: [PATCH] fix --- app/Controllers/Savvy.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Controllers/Savvy.php b/app/Controllers/Savvy.php index b1402d5..326a15b 100644 --- a/app/Controllers/Savvy.php +++ b/app/Controllers/Savvy.php @@ -197,16 +197,17 @@ class Savvy extends BaseController $resLoginArray = json_decode($resLogin, true); $this->logArray($resLoginArray); log_message('critical', "Ready for Profile=>".$resLoginArray['accessToken'] ); - if (!empty($resLoginArray)){ + if (!empty($resLoginArray) && is_array($resLoginArray)){ if (isset($resLoginArray['accessToken'])){ - $resProfile = UserProfile::floatUserProfile($resLoginArray['accessToken']); $this->logArray($resProfile); $res = json_decode($resProfile, true); $this->logArray($res); } - } + else{ + log_message('critical', "Login Failed for User=>".$inx['username'] ); + } } break;