This commit is contained in:
dev-chiefworks
2022-04-14 14:53:15 -04:00
parent 4e11ec53e0
commit 5109c78463
+4 -3
View File
@@ -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;